org.encog.neural.networks.training.cpn
Class TrainInstar

java.lang.Object
  extended by org.encog.neural.networks.training.BasicTraining
      extended by org.encog.neural.networks.training.cpn.TrainInstar
All Implemented Interfaces:
LearningRate, Train

public class TrainInstar
extends BasicTraining
implements LearningRate

Used for Instar training of a CPN neural network. A CPN network is a hybrid supervised/unsupervised network. The Instar training handles the unsupervised portion of the training.


Constructor Summary
TrainInstar(BasicNetwork network, NeuralDataSet training, double learningRate)
          Construct the instar training object.
 
Method Summary
 double getLearningRate()
           
 BasicNetwork getNetwork()
          Get the current best network from the training.
 void iteration()
          Perform one training iteration.
 void setLearningRate(double rate)
          Set the learning rate.
 
Methods inherited from class org.encog.neural.networks.training.BasicTraining
addStrategy, finishTraining, getCloud, getError, getIteration, getStrategies, getTraining, isTrainingDone, iteration, postIteration, preIteration, setCloud, setError, setIteration, setTraining
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrainInstar

public TrainInstar(BasicNetwork network,
                   NeuralDataSet training,
                   double learningRate)
Construct the instar training object.

Parameters:
network - The network to be trained.
training - The training data.
learningRate - The learning rate.
Method Detail

getLearningRate

public double getLearningRate()
Specified by:
getLearningRate in interface LearningRate
Returns:
The learning rate.

getNetwork

public BasicNetwork getNetwork()
Description copied from interface: Train
Get the current best network from the training.

Specified by:
getNetwork in interface Train
Returns:
The network being trained.

iteration

public void iteration()
Perform one training iteration.

Specified by:
iteration in interface Train

setLearningRate

public void setLearningRate(double rate)
Set the learning rate.

Specified by:
setLearningRate in interface LearningRate
Parameters:
rate - The new learning rate.


Copyright © 2011. All Rights Reserved.