SOM
org.encog.neural.som

Class SOM

    • Field Detail

      • VERYSMALL

        public static final double VERYSMALL
        Do not allow patterns to go below this very small number.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SOM

        public SOM()
        Default constructor.
      • SOM

        public SOM(int inputCount,   int outputCount)
        The constructor.
        Parameters:
        inputCount - Number of input neurons
        outputCount - Number of output neurons
    • Method Detail

      • calculateError

        public final double calculateError(MLDataSet data)
        Calculate the error of the ML method, given a dataset.
        Specified by:
        calculateError in interface MLError
        Parameters:
        data - The dataset.
        Returns:
        The error.
      • classify

        public final int classify(MLData input)
        Classify the input into a group.
        Specified by:
        classify in interface MLClassification
        Parameters:
        input - The input data to classify.
        Returns:
        The group that the data was classified into.
      • compute

        public final MLData compute(MLData input)
        Determine the winner for the specified input. This is the number of the winning neuron.
        Parameters:
        input - The input pattern.
        Returns:
        The winning neuron.
      • getInputCount

        public final int getInputCount()
        Specified by:
        getInputCount in interface MLInput
        Returns:
        The input.
      • getInputNeuronCount

        public final int getInputNeuronCount()
        Get the input neuron count.
        Returns:
        The input neuron count.
      • getOutputCount

        public final int getOutputCount()
        Specified by:
        getOutputCount in interface MLOutput
        Returns:
        The output count.
      • getOutputNeuronCount

        public final int getOutputNeuronCount()
        Get the output neuron count.
        Returns:
        The output neuron count.
      • getWeights

        public final Matrix getWeights()
        Returns:
        the weights
      • reset

        public final void reset()
        Reset the weights.
        Specified by:
        reset in interface MLResettable
      • reset

        public final void reset(int seed)
        Reset the weights with a seed.
        Specified by:
        reset in interface MLResettable
        Parameters:
        seed - The seed value.
      • setInputCount

        public final void setInputCount(int i)
        Set the input count.
        Parameters:
        i - The input count.
      • setOutputNeuronCount

        public final void setOutputNeuronCount(int i)
        Set the output count.
        Parameters:
        i - The output count.
      • setWeights

        public final void setWeights(Matrix weights)
        Parameters:
        weights - the weights to set
      • winner

        public final int winner(MLData input)
        Determine the winner for the specified input. This is the number of the winning neuron.
        Parameters:
        input - The input pattern.
        Returns:
        The winning neuron.

SCaVis 2.2 © jWork.ORG