public class BPTTTrainer extends IterableTrainer
IterableTrainer.StoppingCondition
Trainer.DataNotInitializedException
Constructor and Description |
---|
BPTTTrainer(BPTTNetwork bptt)
Construct the SRN trainer.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the algorithm.
|
double |
getError()
Get the current MSE error.
|
double |
getLearningRate() |
double |
getMomentum() |
void |
randomize()
Randomize the network being trained.
|
void |
setLearningRate(double learningRate) |
void |
setMomentum(double momentum) |
addErrorListener, fireErrorUpdated, getErrorListeners, getErrorThreshold, getIteration, getIterationsBeforeStopping, getMinimumNumRows, getStoppingCond, getStoppingCondition, getValidationError, incrementIteration, isUpdateCompleted, iterate, removeErrorListener, setErrorThreshold, setIteration, setIterationsBeforeStopping, setStoppingCond, setStoppingCondition, setUpdateCompleted
addListener, fireProgressUpdate, fireTrainingBegin, fireTrainingEnd, getListeners, getTrainable, getTrainableNetwork, removeListener, revalidateSynapseGroups
public BPTTTrainer(BPTTNetwork bptt)
bptt
- the simple recurrent networkpublic void apply()
Trainer
public double getError()
IterableTrainer
getError
in class IterableTrainer
public void randomize()
IterableTrainer
randomize
in class IterableTrainer
public double getLearningRate()
public void setLearningRate(double learningRate)
learningRate
- the learningRate to setpublic double getMomentum()
public void setMomentum(double momentum)
momentum
- the momentum to set