C# Class Encog.Engine.Network.Train.Prop.TrainFlatNetworkSCG

Train a network using scaled conjugate gradient.
Inheritance: TrainFlatNetworkProp
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CalculateGradients ( ) : void

Calculate the gradients. They are normalized as well.

Iteration ( ) : void

Perform one iteration.

TrainFlatNetworkSCG ( FlatNetwork network, IEngineDataSet training ) : Encog.Engine.Data

Construct the training object.

UpdateWeight ( double gradients, double lastGradient, int index ) : double

Update the weights.

Private Methods

Method Description
Init ( ) : void

Calculate the starting set of gradients.

Method Details

CalculateGradients() public method

Calculate the gradients. They are normalized as well.
public CalculateGradients ( ) : void
return void

Iteration() public method

Perform one iteration.
public Iteration ( ) : void
return void

TrainFlatNetworkSCG() public method

Construct the training object.
public TrainFlatNetworkSCG ( FlatNetwork network, IEngineDataSet training ) : Encog.Engine.Data
network Encog.Engine.Network.Flat.FlatNetwork The network to train.
training IEngineDataSet The training data to use.
return Encog.Engine.Data

UpdateWeight() public method

Update the weights.
public UpdateWeight ( double gradients, double lastGradient, int index ) : double
gradients double The current gradients.
lastGradient double The last gradients.
index int The index.
return double