kohonen
Class WTMLearningFunctionWithTired
java.lang.Object
kohonen.WTMLearningFunction
kohonen.WTMLearningFunctionWithTired
public class WTMLearningFunctionWithTired
- extends WTMLearningFunction
WTMLearningFunctionWithTired class - learnig class used to learn
neuron with tiredness
Method Summary |
protected void |
changeNeuronWeight(int neuronNumber,
double[] vector,
int iteration,
int distance)
Change neuron weights for specified neuron number, iteration, input data vector and distance
and distance to winning neuron. |
protected int |
getBestNeuron(double[] vector)
Return number of best neuron for specified input vector. |
Methods inherited from class kohonen.WTMLearningFunction |
changeWeight, getFunctionalModel, getLearningData, getMaxIteration, getMetrics, getNeighboorhoodFunction, getNetworkModel, isShowComments, learn, setFunctionalModel, setLearningData, setMaxIteration, setMetrics, setNeighboorhoodFunction, setNetworkModel, setShowComments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WTMLearningFunctionWithTired
public WTMLearningFunctionWithTired(NetworkModel networkModel,
int maxIteration,
MetricModel metrics,
LearningDataModel learningData,
LearningFactorFunctionalModel functionalModel,
NeighbourhoodFunctionModel neighboorhoodFunction)
- Creates a new instance of WTMLearningFunction
- Parameters:
networkModel
- reference to network ModelmaxIteration
- max number of iterationmetrics
- reference to metricslearningData
- reference to learning datafunctionalModel
- reference to functional ModelneighboorhoodFunction
- reference to Neighboorhood Function
getBestNeuron
protected int getBestNeuron(double[] vector)
- Return number of best neuron for specified input vector.
Tiredness for all neurons increas
- Overrides:
getBestNeuron
in class WTMLearningFunction
- Parameters:
vector
- input vector
- Returns:
- NeuronModelnumber
changeNeuronWeight
protected void changeNeuronWeight(int neuronNumber,
double[] vector,
int iteration,
int distance)
- Change neuron weights for specified neuron number, iteration, input data vector and distance
and distance to winning neuron. All changed neurons'
tiredness is decrease.
- Overrides:
changeNeuronWeight
in class WTMLearningFunction
- Parameters:
distance
- distance to winning neuronneuronNumber
- neuron numbervector
- input vectoriteration
- iteration number