Documentation of 'jhpro.nnet.jknnl.WTMLearningFunction' Java class
WTMLearningFunction
jhpro.nnet.jknnl

Class WTMLearningFunction

  • Direct Known Subclasses:
    WTMLearningFunctionWithTired


    public class WTMLearningFunction
    extends java.lang.Object
    Winner Takes Most - algorithm where wining neuron and neurons in neighborhood weights are changed according to the formula w(k+1) = w(k) + n *N(i,x)* (x-w) where
    w(k+1) - neuron weight in k +1 iteration
    w(k) - neuron weight for k iteration
    n - value of learning function factor for k iteration
    N(i,x) - value of neighborhood function for i - specified neuron x - learning vector od data w - neuron weight
    See Also:
    WTMLearningFunction
    • Constructor Detail

      • WTMLearningFunction

        public WTMLearningFunction(NetworkModel networkModel,
                                   int maxIteration,
                                   MetricModel metrics,
                                   LearningDataModel learningData,
                                   LearningFactorFunctionalModel functionalModel,
                                   NeighbourhoodFunctionModel neighboorhoodFunction)
        Creates a new instance of WTMLearningFunction
        Parameters:
        networkModel - reference to network Model
        maxIteration - max number of iteration
        metrics - reference to metrics
        learningData - reference to learning data
        functionalModel - reference to functional Model
        neighboorhoodFunction - reference to Neighborhood Function
    • Method Detail

      • isShowComments

        public boolean isShowComments()
        Return information if learning process displays information about learning process.
        Returns:
        true if learning process display information
      • setShowComments

        public void setShowComments(boolean showComments)
        Set if comments during learning process must be shown.
        Parameters:
        showComments - true if comments must be shown, false otherwise
      • setNeighboorhoodFunction

        public void setNeighboorhoodFunction(NeighbourhoodFunctionModel neighboorhoodFunction)
        Set reference to neighboorhood function
        Parameters:
        neighboorhoodFunction - reference to neighboorhood function
      • getNeighboorhoodFunction

        public NeighbourhoodFunctionModel getNeighboorhoodFunction()
        Return reference to neighboorhood function
        Returns:
        reference to neighboorhood function
      • setMetrics

        public void setMetrics(MetricModel metrics)
        Set metrics
        Parameters:
        metrics - metrics
      • setNetworkModel

        public void setNetworkModel(NetworkModel networkModel)
        Set network model
        Parameters:
        networkModel - network model
      • getNetworkModel

        public NetworkModel getNetworkModel()
        Return network model
        Returns:
        network model
      • setMaxIteration

        public void setMaxIteration(int maxIteration)
        Set max interation
        Parameters:
        maxIteration - max interation
      • getMaxIteration

        public int getMaxIteration()
        Return maximal number of iteration
        Returns:
        maximal number of iteration
      • setLearningData

        public void setLearningData(LearningDataModel learningData)
        Set reference to learning data
        Parameters:
        learningData - reference to learning data
      • getLearningData

        public LearningDataModel getLearningData()
        Return reference to learning data
        Returns:
        reference to learning data
      • setFunctionalModel

        public void setFunctionalModel(LearningFactorFunctionalModel functionalModel)
        Set functional learning factor model
        Parameters:
        functionalModel - functional learning factor model
      • getBestNeuron

        public int getBestNeuron(double[] vector)
        Rerturn number of best neuron for specified input vector
        Parameters:
        vector - input vector
        Returns:
        NeuronModelnumber
      • changeWeight

        public void changeWeight(int neuronNumber,
                                 double[] vector,
                                 int iteration)
        Change specified neuron weight
        Parameters:
        neuronNumber - neuron Number
        vector - input vector
        iteration - iteration number
      • learn

        public void learn()
        Start learning process

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.