Neuroph

org.neuroph.nnet.learning
Class KohonenLearning

java.lang.Object
  extended by java.util.Observable
      extended by org.neuroph.core.learning.LearningRule
          extended by org.neuroph.nnet.learning.KohonenLearning
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class KohonenLearning
extends LearningRule

The KohonenLearning implements the learning algorithm for Kohonen network.

See Also:
Serialized Form

Field Summary
(package private)  int currentIteration
           
(package private)  double[] decStep
           
(package private)  int[] iterations
           
(package private)  double learningRate
           
(package private)  int mapSize
           
(package private)  int[] nR
           
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
Fields inherited from class org.neuroph.core.learning.LearningRule
neuralNetwork
 
Constructor Summary
KohonenLearning(Kohonen nnet)
           
 
Method Summary
private  void adjustCellWeights(Neuron cell, int r)
           
private  Neuron getClosest()
           
 java.lang.Integer getIteration()
           
 double getLearningRate()
           
 int getMapSize()
           
private  boolean isNeighbor(int i, int j, int n)
           
 void learn(TrainingSet trainingSet)
          Override this method to implement specific learning procedures
private  void learnPattern(TrainingElement tE, int neighborhood)
           
 void setIterations(int Iphase, int IIphase)
           
 void setLearningRate(double learningRate)
           
 
Methods inherited from class org.neuroph.core.learning.LearningRule
getTrainingSet, isStopped, notifyChange, run, setTrainingSet, stopLearning
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values

learningRate

double learningRate

iterations

int[] iterations

decStep

double[] decStep

mapSize

int mapSize

nR

int[] nR

currentIteration

int currentIteration
Constructor Detail

KohonenLearning

public KohonenLearning(Kohonen nnet)
Method Detail

learn

public void learn(TrainingSet trainingSet)
Description copied from class: LearningRule
Override this method to implement specific learning procedures

Specified by:
learn in class LearningRule
Parameters:
trainingSet - training set

learnPattern

private void learnPattern(TrainingElement tE,
                          int neighborhood)

getClosest

private Neuron getClosest()

adjustCellWeights

private void adjustCellWeights(Neuron cell,
                               int r)

isNeighbor

private boolean isNeighbor(int i,
                           int j,
                           int n)

getLearningRate

public double getLearningRate()

setLearningRate

public void setLearningRate(double learningRate)

setIterations

public void setIterations(int Iphase,
                          int IIphase)

getIteration

public java.lang.Integer getIteration()

getMapSize

public int getMapSize()

Neuroph