Class KohonenTrainingTask
- java.lang.Object
-
- org.apache.commons.math3.ml.neuralnet.sofm.KohonenTrainingTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class KohonenTrainingTask extends java.lang.Object implements java.lang.RunnableTrainer for Kohonen's Self-Organizing Map.- Since:
- 3.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<double[]>featuresIteratorTraining data.private NetworknetSOFM to be trained.private KohonenUpdateActionupdateActionUpdate procedure.
-
Constructor Summary
Constructors Constructor Description KohonenTrainingTask(Network net, java.util.Iterator<double[]> featuresIterator, KohonenUpdateAction updateAction)Creates a (sequential) trainer for the given network.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()
-
-
-
Field Detail
-
net
private final Network net
SOFM to be trained.
-
featuresIterator
private final java.util.Iterator<double[]> featuresIterator
Training data.
-
updateAction
private final KohonenUpdateAction updateAction
Update procedure.
-
-
Constructor Detail
-
KohonenTrainingTask
public KohonenTrainingTask(Network net, java.util.Iterator<double[]> featuresIterator, KohonenUpdateAction updateAction)
Creates a (sequential) trainer for the given network.- Parameters:
net- Network to be trained with the SOFM algorithm.featuresIterator- Training data iterator.updateAction- SOFM update procedure.
-
-