org.encog.neural.networks.training.simple
Class TrainAdaline

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

public class TrainAdaline
extends BasicTraining
implements LearningRate

Train an ADALINE neural network.


Constructor Summary
TrainAdaline(BasicNetwork network, NeuralDataSet training, double learningRate)
          Construct an ADALINE trainer.
 
Method Summary
 double getLearningRate()
           
 BasicNetwork getNetwork()
          Get the current best network from the training.
 void iteration()
          Perform a 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

TrainAdaline

public TrainAdaline(BasicNetwork network,
                    NeuralDataSet training,
                    double learningRate)
Construct an ADALINE trainer.

Parameters:
network - The network to train.
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 a 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.