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

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

public class TrainOutstar
extends BasicTraining
implements LearningRate

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


Constructor Summary
TrainOutstar(BasicNetwork network, NeuralDataSet training, double learningRate)
          Construct the outstar trainer.
 
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

TrainOutstar

public TrainOutstar(BasicNetwork network,
                    NeuralDataSet training,
                    double learningRate)
Construct the outstar trainer.

Parameters:
network - The network to train.
training - The training data, must provide ideal outputs.
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.