kohonen
Class WTALearningFunctionWithTired
java.lang.Object
kohonen.WTALearningFunction
kohonen.WTALearningFunctionWithTired
public class WTALearningFunctionWithTired
- extends WTALearningFunction
WTALearningFunctionWithTired class - learnig class used to learn
neurons with tiredness
Method Summary |
protected void |
changeNeuronWeight(int neuronNumber,
double[] vector,
int iteration)
Change neuron weights for specified neuron number,iteration and input data vector. |
protected int |
getBestNeuron(double[] vector)
Return number of the best neuron for specified input vector. |
Methods inherited from class kohonen.WTALearningFunction |
getFunctionalModel, getLearningData, getMaxIteration, getMetrics, getNetworkModel, isShowComments, learn, setFunctionalModel, setLearningData, setMaxIteration, setMetrics, setNetworkModel, setShowComments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WTALearningFunctionWithTired
public WTALearningFunctionWithTired(NetworkModel networkModel,
int maxIteration,
MetricModel metrics,
LearningDataModel learningData,
LearningFactorFunctionalModel functionalModel)
- Creates a new instance of WTALearningFunction.
- Parameters:
networkModel
- network modelmaxIteration
- iteration numbermetrics
- metricslearningData
- learnig datafunctionalModel
- functional model- See Also:
MetricModel
,
LearningData
,
NetworkModel
,
LearningFactorFunctionalModel
getBestNeuron
protected int getBestNeuron(double[] vector)
- Return number of the best neuron for specified input vector.
All neuron's tiredness is increasing
- Overrides:
getBestNeuron
in class WTALearningFunction
- Parameters:
vector
- input vector
- Returns:
- Neuron number
changeNeuronWeight
protected void changeNeuronWeight(int neuronNumber,
double[] vector,
int iteration)
- Change neuron weights for specified neuron number,iteration and input data vector.
Changed neruon's tiredness is decreasing.
- Overrides:
changeNeuronWeight
in class WTALearningFunction
- Parameters:
neuronNumber
- neuron numbervector
- input vectoriteration
- iteration number