C# Class NNX.Core.Training.UntilDoneGradientTrainer

An on-line gradient descent trainer that radnomly splits the input trainingSet into a training and validation subsets. The trainier will keep selecting a random input/target pair from the training set and applying backpropagation until cross-entropy error on the validation set does not improve after MaxEpochsWithoutImprovement. The trainer will terminate after NumEpochs even if MaxEpochsWithoutImprovement condition has not been reached.
Inheritance: SimpleGradientTrainer
ファイルを表示 Open project: ikhramts/NNX Class Usage Examples

Public Methods

Method Description
GetValidationSetFraction ( ) : double
Train ( IList trainingSet, IList validationSet, IRandomGenerator rand, INeuralNetwork nn ) : void
Validate ( ) : void

Method Details

GetValidationSetFraction() public method

public GetValidationSetFraction ( ) : double
return double

Train() public method

public Train ( IList trainingSet, IList validationSet, IRandomGenerator rand, INeuralNetwork nn ) : void
trainingSet IList
validationSet IList
rand IRandomGenerator
nn INeuralNetwork
return void

Validate() public method

public Validate ( ) : void
return void