org.encog.neural.networks.training.nm
public class NelderMeadTraining extends BasicTraining
| Constructor and Description |
|---|
NelderMeadTraining(BasicNetwork network,
MLDataSet training)
Construct a Nelder Mead trainer with a step size of 100.
|
NelderMeadTraining(BasicNetwork network,
MLDataSet training,
double stepValue)
Construct a Nelder Mead trainer with a definable step.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canContinue() |
double |
fn(double[] weights)
Calculate the error for the neural network with a given set of weights.
|
MLMethod |
getMethod()
Get the current best machine learning method from the training.
|
boolean |
isTrainingDone() |
void |
iteration()
Perform one iteration of training.
|
TrainingContinuation |
pause()
Pause the training to continue later.
|
void |
resume(TrainingContinuation state)
Resume training.
|
addStrategy, finishTraining, getError, getImplementationType, getIteration, getStrategies, getTraining, iteration, postIteration, preIteration, setError, setIteration, setTrainingpublic NelderMeadTraining(BasicNetwork network, MLDataSet training)
network - The network to train.training - The training set to use.public NelderMeadTraining(BasicNetwork network, MLDataSet training, double stepValue)
network - The network to train.training - The training data to use.stepValue - The step value. This value defines, to some degree the range
of different weights that will be tried.public boolean canContinue()
public double fn(double[] weights)
weights - The weights to use.public MLMethod getMethod()
public boolean isTrainingDone()
isTrainingDone in interface MLTrainisTrainingDone in class BasicTrainingpublic void iteration()
public TrainingContinuation pause()
public void resume(TrainingContinuation state)
state - The training continuation object to use to continue.Copyright © 2014. All Rights Reserved.