theanets.trainer.DownhillTrainer¶
-
class
theanets.trainer.
DownhillTrainer
(algo, network)¶ Wrapper for using trainers from
downhill
.-
__init__
(algo, network)¶
Methods
__init__
(algo, network)itertrain
(train[, valid])Train a model using a training and validation set. -
itertrain
(train, valid=None, **kwargs)¶ Train a model using a training and validation set.
This method yields a series of monitor values to the caller. After every iteration, a pair of monitor dictionaries is generated: one evaluated on the training dataset, and another evaluated on the validation dataset. The validation monitors might not be updated during every training iteration; in this case, the most recent validation monitors will be yielded along with the training monitors.
Parameters: train :
Dataset
A set of training data for computing updates to model parameters.
valid :
Dataset
A set of validation data for computing monitor values and determining when the loss has stopped improving.
-