Class KohonenTrainingTask
java.lang.Object
org.apache.commons.math3.ml.neuralnet.sofm.KohonenTrainingTask
- All Implemented Interfaces:
Runnable
Trainer for Kohonen's Self-Organizing Map.
- Since:
- 3.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Iterator
<double[]> Training data.private final Network
SOFM to be trained.private final KohonenUpdateAction
Update procedure. -
Constructor Summary
ConstructorsConstructorDescriptionKohonenTrainingTask
(Network net, Iterator<double[]> featuresIterator, KohonenUpdateAction updateAction) Creates a (sequential) trainer for the given network. -
Method Summary
-
Field Details
-
net
SOFM to be trained. -
featuresIterator
Training data. -
updateAction
Update procedure.
-
-
Constructor Details
-
KohonenTrainingTask
public KohonenTrainingTask(Network net, 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.
-
-
Method Details