C# Class Encog.ML.Train.Strategy.RequiredImprovementStrategy

The reset strategy will reset the weights if the neural network fails to improve by the specified amount over a number of cycles.
Inheritance: IStrategy
Datei anzeigen Open project: encog/encog-silverlight-core

Public Methods

Method Description
Init ( IMLTrain train ) : void

Initialize this strategy.

PostIteration ( ) : void

Called just after a training iteration.

PreIteration ( ) : void

Called just before a training iteration.

RequiredImprovementStrategy ( double required, double threshold, int cycles ) : System

Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.

RequiredImprovementStrategy ( double required, int cycles ) : System

Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.

RequiredImprovementStrategy ( int cycles ) : System

Reset if there is not at least a 1% improvement for 5 cycles. Don't reset if below 10%.

Method Details

Init() public method

Initialize this strategy.
public Init ( IMLTrain train ) : void
train IMLTrain The training algorithm.
return void

PostIteration() public method

Called just after a training iteration.
public PostIteration ( ) : void
return void

PreIteration() public method

Called just before a training iteration.
public PreIteration ( ) : void
return void

RequiredImprovementStrategy() public method

Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.
public RequiredImprovementStrategy ( double required, double threshold, int cycles ) : System
required double The required error rate.
threshold double The accepted threshold, don't reset if error is below this.
cycles int The number of cycles to reach that rate.
return System

RequiredImprovementStrategy() public method

Construct a reset strategy. The error rate must fall below the required rate in the specified number of cycles, or the neural network will be reset to random weights and bias values.
public RequiredImprovementStrategy ( double required, int cycles ) : System
required double The required error rate.
cycles int The number of cycles to reach that rate.
return System

RequiredImprovementStrategy() public method

Reset if there is not at least a 1% improvement for 5 cycles. Don't reset if below 10%.
public RequiredImprovementStrategy ( int cycles ) : System
cycles int
return System