Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jul 6, 2017
1 parent 2119162 commit 9aafb86
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,25 @@ end

Each of these callbacks will trigger the implemented callbacks of the sub-strategies, allowing you to compile complex behavior from simple components.

The above loop sends data to the MetaLearner in an online fashion. LearningStrategies can also be used for offline algorithms via
```julia
learn!(model, meta, data, LearnType.Offline())
```

```julia
function learn!(model, meta::MetaLearner, data, ::LearnType.Offline)
pre_hook(meta, model)
i = 1
while true
update!(model, meta, data)
iter_hook(meta, model, i)
finished(meta, model, i) && break
i += 1
end
post_hook(meta, model)
end
```


## Simple example

Expand Down

0 comments on commit 9aafb86

Please sign in to comment.