|
||||||||||
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.freeform.training.FreeformPropagationTraining
public abstract class FreeformPropagationTraining
Provides basic propagation functions to other trainers.
Field Summary | |
---|---|
static double |
FLAT_SPOT_CONST
|
Constructor Summary | |
---|---|
FreeformPropagationTraining()
Don't use this constructor, it is for serialization only. |
|
FreeformPropagationTraining(FreeformNetwork theNetwork,
MLDataSet theTraining)
|
Method Summary | |
---|---|
boolean |
canContinue()
|
void |
finishTraining()
Should be called after training has completed and the iteration method will not be called any further. |
int |
getBatchSize()
|
double |
getError()
|
TrainingImplementationType |
getImplementationType()
|
int |
getIteration()
|
MLMethod |
getMethod()
Get the current best machine learning method from the training. |
MLDataSet |
getTraining()
|
boolean |
isFixFlatSopt()
|
void |
iteration()
Perform one iteration of training. |
void |
iteration(int count)
Perform the specified number of training iterations. |
protected void |
learn()
|
protected abstract void |
learnConnection(FreeformConnection connection)
|
protected void |
processBatches()
|
protected void |
processPureBatch()
|
void |
setBatchSize(int batchSize)
|
void |
setError(double theError)
|
void |
setFixFlatSopt(boolean fixFlatSopt)
|
void |
setIteration(int iteration)
Set the current training iteration. |
Methods inherited from class org.encog.ml.train.BasicTraining |
---|
addStrategy, getStrategies, isTrainingDone, postIteration, preIteration, setTraining |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.encog.ml.train.MLTrain |
---|
pause, resume |
Field Detail |
---|
public static final double FLAT_SPOT_CONST
Constructor Detail |
---|
public FreeformPropagationTraining()
public FreeformPropagationTraining(FreeformNetwork theNetwork, MLDataSet theTraining)
Method Detail |
---|
public boolean canContinue()
canContinue
in interface MLTrain
public void finishTraining()
BasicTraining
finishTraining
in interface MLTrain
finishTraining
in class BasicTraining
public double getError()
BasicTraining
getError
in interface MLTrain
getError
in class BasicTraining
public TrainingImplementationType getImplementationType()
getImplementationType
in interface MLTrain
getImplementationType
in class BasicTraining
public int getIteration()
getIteration
in interface MLTrain
getIteration
in class BasicTraining
public MLMethod getMethod()
MLTrain
getMethod
in interface MLTrain
public MLDataSet getTraining()
getTraining
in interface MLTrain
getTraining
in class BasicTraining
public boolean isFixFlatSopt()
public void iteration()
MLTrain
iteration
in interface MLTrain
public void iteration(int count)
BasicTraining
iteration
in interface MLTrain
iteration
in class BasicTraining
count
- The number of training iterations.protected void processPureBatch()
protected void processBatches()
protected void learn()
protected abstract void learnConnection(FreeformConnection connection)
public void setError(double theError)
setError
in interface MLTrain
setError
in class BasicTraining
theError
- Set the current error rate. This is usually used by training
strategies.public void setFixFlatSopt(boolean fixFlatSopt)
public void setIteration(int iteration)
MLTrain
setIteration
in interface MLTrain
setIteration
in class BasicTraining
iteration
- the iteration to setpublic int getBatchSize()
public void setBatchSize(int batchSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |