public class WTALearningFunctionWithTired extends WTALearningFunction
learningData, maxIteration, networkModel
Constructor and Description |
---|
WTALearningFunctionWithTired(NetworkModel networkModel,
int maxIteration,
LearningDataModel learningData)
Creates a new instance of WTALearningFunction.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getLearningData, getMaxIteration, getNetworkModel, learn, setLearningData, setMaxIteration, setNetworkModel
public WTALearningFunctionWithTired(NetworkModel networkModel, int maxIteration, LearningDataModel learningData)
networkModel
- network modelmaxIteration
- iteration numberlearningData
- learnig dataprotected int getBestNeuron(double[] vector) throws java.lang.Exception
getBestNeuron
in class WTALearningFunction
vector
- input vectorjava.lang.Exception
- any error.protected void changeNeuronWeight(int neuronNumber, double[] vector, int iteration) throws java.lang.Exception
changeNeuronWeight
in class WTALearningFunction
neuronNumber
- neuron numbervector
- input vectoriteration
- iteration numberjava.lang.Exception
- any error.