C# Class NNX.Core.Training.BaseTrainer

Inheritance: ITrainer
Mostrar archivo Open project: ikhramts/NNX

Public Methods

Method Description
GetAccuracy ( INeuralNetwork nn, IList testSet ) : double
GetBatch ( IList set, int size, IRandomGenerator rand ) : IList
GetError ( INeuralNetwork nn, IList testSet ) : double
GetValidationSetFraction ( ) : double
InitializeWeights ( INeuralNetwork nn, IRandomGenerator rand ) : void
Train ( IList trainingSet, IList validationSet, IRandomGenerator rand, INeuralNetwork nn ) : void
Train ( IList trainingSet, INeuralNetwork nn ) : void
Validate ( ) : void

Method Details

GetAccuracy() public static method

public static GetAccuracy ( INeuralNetwork nn, IList testSet ) : double
nn INeuralNetwork
testSet IList
return double

GetBatch() public static method

public static GetBatch ( IList set, int size, IRandomGenerator rand ) : IList
set IList
size int
rand IRandomGenerator
return IList

GetError() public static method

public static GetError ( INeuralNetwork nn, IList testSet ) : double
nn INeuralNetwork
testSet IList
return double

GetValidationSetFraction() public abstract method

public abstract GetValidationSetFraction ( ) : double
return double

InitializeWeights() public static method

public static InitializeWeights ( INeuralNetwork nn, IRandomGenerator rand ) : void
nn INeuralNetwork
rand IRandomGenerator
return void

Train() public abstract method

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

Train() public method

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

Validate() public abstract method

public abstract Validate ( ) : void
return void