Skip to content

Commit

Permalink
Add some docs to eachbatch (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjanan authored and pluskid committed Oct 6, 2016
1 parent 9059c00 commit 4664f3b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,17 @@ function get(provider :: AbstractDataProvider, batch :: AbstractDataBatch, name
error("$name is not provided by this data provider")
end

"""
eachbatch(provider::AbstractDataProvider)
Allows you to perform operations on data every epoch. This is especially useful
when you need to perform real-time augmentation of the data.
# Arguments:
* `provider`: an instance of the custom DataProvider type. You must return this
instance after modifying its fields.
"""
eachbatch(provider :: AbstractDataProvider) = provider

"""
Expand Down

0 comments on commit 4664f3b

Please sign in to comment.