public class CompetitiveTrainer extends Trainer
Trainer.DataNotInitializedException
Constructor and Description |
---|
CompetitiveTrainer(CompetitiveNetwork network)
Construct the competitive network 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 CompetitiveTrainer(CompetitiveNetwork 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()