Package Bio :: Package NeuralNetwork :: Module StopTraining :: Class ValidationIncreaseStop
[hide private]
[frames] | no frames]

Class ValidationIncreaseStop

source code

object --+

Class to stop training on a network when the validation error increases.

Normally, during training of a network, the error will always decrease on the set of data used in the training. However, if an independent set of data is used for validation, the error will decrease to a point, and then start to increase. This increase normally occurs due to the fact that the network is starting to learn noise in the training data set. This stopping criterion function will stop when the validation error increases.

Instance Methods [hide private]
__init__(self, max_iterations=None, min_iterations=0, verbose=0)
Initialize the stopping criterion class.
source code
stopping_criteria(self, num_iterations, training_error, validation_error)
Define when to stop iterating.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, max_iterations=None, min_iterations=0, verbose=0)

source code 

Initialize the stopping criterion class.

  • max_iterations - The maximum number of iterations that should be performed, regardless of error.
  • min_iterations - The minimum number of iterations to perform, to prevent premature stoppage of training.
  • verbose - Whether or not the error should be printed during training.
Overrides: object.__init__