|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.train.BasicTraining
org.encog.neural.cpn.training.TrainInstar
public class TrainInstar
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(CPN theNetwork,
MLDataSet theTraining,
double theLearningRate,
boolean theInitWeights)
Construct the instar training object. |
Method Summary | |
---|---|
boolean |
canContinue()
|
double |
getLearningRate()
|
CPN |
getMethod()
Get the current best machine learning method from the training. |
void |
iteration()
Perform one iteration of training. |
TrainingContinuation |
pause()
Pause the training to continue later. |
void |
resume(TrainingContinuation state)
Resume training. |
void |
setLearningRate(double rate)
Set the learning rate. |
Methods inherited from class org.encog.ml.train.BasicTraining |
---|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, isTrainingDone, iteration, postIteration, preIteration, setError, setIteration, setTraining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrainInstar(CPN theNetwork, MLDataSet theTraining, double theLearningRate, boolean theInitWeights)
theNetwork
- The network to be trained.theTraining
- The training data.theLearningRate
- The learning rate.theInitWeights
- True, if the weights should be initialized from the training
data. If set to true, then you must have the same number of
training elements as instar neurons.Method Detail |
---|
public boolean canContinue()
canContinue
in interface MLTrain
public double getLearningRate()
getLearningRate
in interface LearningRate
public CPN getMethod()
getMethod
in interface MLTrain
public void iteration()
iteration
in interface MLTrain
public TrainingContinuation pause()
pause
in interface MLTrain
public void resume(TrainingContinuation state)
resume
in interface MLTrain
state
- The training continuation object to use to continue.public void setLearningRate(double rate)
setLearningRate
in interface LearningRate
rate
- The new learning rate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |