Click or drag to resize
EpochTrainer Class
Two-stage training using randomly selected training patterns in stage I.
Inheritance Hierarchy
SystemObject
  Imsl.DataMining.NeuralEpochTrainer

Namespace: Imsl.DataMining.Neural
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
[SerializableAttribute]
public class EpochTrainer : ITrainer

The EpochTrainer type exposes the following members.

Constructors
  NameDescription
Public methodEpochTrainer(ITrainer)
Creates a single stage EpochTrainer. Stage II training is bypassed.
Public methodEpochTrainer(ITrainer, ITrainer)
Creates a two-stage EpochTrainer.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetRandomSamples
Sets the random number generators used to select random training patterns in stage I.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrain
Trains the neural network using supplied training patterns.
Top
Properties
  NameDescription
Public propertyEpochSize
The number of randomly selected training patterns in each stage I epoch.
Public propertyErrorGradient
The value of the gradient of the error function with respect to the Weights.
Public propertyErrorStatus
The training error status.
Public propertyErrorValue
The value of the error function.
Public propertyNumberOfEpochs
The number of epochs used during stage I training.
Public propertyRandom
The random number generator used to perturb the stage I guesses.
Protected propertyStage1Trainer
The stage 1 trainer.
Protected propertyStage2Trainer
The stage 1 trainer.
Top
Remarks

The EpochTrainer, is a meta-trainer that combines two trainers. The first trainer is used on a series of randomly selected subsets of the training patterns. For each subset, the Weights are initialized to their initial values plus a random offset.

Stage II then refines the result found in stage I. The best result from the stage I trainings is used as the initial guess with the second trainer operating on the full set of training patterns. Stage II is optional, if the second trainer is null then the best stage I result is returned as the EpochTrainer's result.

See Also