C# Class Encog.Neural.Networks.Training.BasicTraining

An abstract class that implements basic training for most training algorithms. Specifically training strategies can be added to enhance the training.
Inheritance: ITrain
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
AddStrategy ( IStrategy strategy ) : void

Training strategies can be added to improve the training results. There are a number to choose from, and several can be used at once.

FinishTraining ( ) : void

Should be called after training has completed and the iteration method will not be called any further.

Iteration ( ) : void

Perform one iteration of training.

Iteration ( int count ) : void

Perform the specified number of training iterations. This is a basic implementation that just calls iteration the specified number of times. However, some training methods, particularly with the GPU, benefit greatly by calling with higher numbers than 1.

PostIteration ( ) : void

Call the strategies after an iteration.

PreIteration ( ) : void

Call the strategies before an iteration.

Method Details

AddStrategy() public method

Training strategies can be added to improve the training results. There are a number to choose from, and several can be used at once.
public AddStrategy ( IStrategy strategy ) : void
strategy IStrategy The strategy to add.
return void

FinishTraining() public method

Should be called after training has completed and the iteration method will not be called any further.
public FinishTraining ( ) : void
return void

Iteration() public abstract method

Perform one iteration of training.
public abstract Iteration ( ) : void
return void

Iteration() public method

Perform the specified number of training iterations. This is a basic implementation that just calls iteration the specified number of times. However, some training methods, particularly with the GPU, benefit greatly by calling with higher numbers than 1.
public Iteration ( int count ) : void
count int The number of training iterations.
return void

PostIteration() public method

Call the strategies after an iteration.
public PostIteration ( ) : void
return void

PreIteration() public method

Call the strategies before an iteration.
public PreIteration ( ) : void
return void