public class SOMTrainer extends Trainer
Trainer.DataNotInitializedException
Constructor and Description |
---|
SOMTrainer(SOMNetwork network)
Construct the UnsupervisedNeuronGroupTrainer trainer.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Apply the algorithm.
|
int |
getIteration()
Return the current iteration.
|
void |
incrementIteration()
Increment the iteration number by 1.
|
boolean |
isUpdateCompleted() |
void |
setIteration(int iteration) |
void |
setUpdateCompleted(boolean updateCompleted)
Sets updated completed value.
|
addListener, fireProgressUpdate, fireTrainingBegin, fireTrainingEnd, getListeners, getTrainable, getTrainableNetwork, removeListener, revalidateSynapseGroups
public SOMTrainer(SOMNetwork network)
network
- the parent networkpublic void apply() throws Trainer.DataNotInitializedException
Trainer
apply
in class Trainer
Trainer.DataNotInitializedException
- when input or target data have not been set.public boolean isUpdateCompleted()
public void setUpdateCompleted(boolean updateCompleted)
updateCompleted
- Updated completed value to be setpublic void incrementIteration()
public void setIteration(int iteration)
iteration
- the iteration to setpublic int getIteration()