Struct nn::Trainer [] [src]

pub struct Trainer<'a, 'b> { /* fields omitted */ }

Used to specify options that dictate how a network will be trained

Methods

impl<'a, 'b> Trainer<'a, 'b>
[src]

Trainer is used to chain together options that specify how to train a network. All of the options are optional because the Trainer struct has default values built in for each option. The go() method must be called however or the network will not be trained.

Specifies the learning rate to be used when training (default is 0.3) This is the step size that is used in the backpropagation algorithm.

Specifies the momentum to be used when training (default is 0.0)

Specifies how often (measured in batches) to log the current error rate (mean squared error) during training. Some(x) means log after every x batches and None means never log

Specifies when to stop training. Epochs(x) will stop the training after x epochs (one epoch is one loop through all of the training examples) while MSE(e) will stop the training when the error rate is at or below e. Timer(d) will halt after the duration d has elapsed.

Specifies what mode to train the network in. Incremental means update the weights in the network after every example.

When go is called, the network will begin training based on the options specified. If go does not get called, the network will not get trained!

Trait Implementations

impl<'a, 'b> Debug for Trainer<'a, 'b>
[src]

Formats the value using the given formatter.