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

Class DefaultNeuron

    • Constructor Detail

      • DefaultNeuron

        public DefaultNeuron(int weightNumber,
                             double[] maxWeight,
                             ActivationFunctionModel activationFunction)
        Creates a new instance of DefaultNeuronWithBias with random weights value
        Parameters:
        weightNumber - numbers of weights
        maxWeight - maximal value of neuron weight
        activationFunction - reference to activation function
      • DefaultNeuron

        public DefaultNeuron(double[] weightArray,
                             ActivationFunctionModel activationFunction)
        Creates a new instance of DefaultNeuronWithBias with specified weights defined in array
        Parameters:
        weightArray - array of weights value
        activationFunction - reference to activation function
    • Method Detail

      • getWeight

        public double[] getWeight()
        Returns array contains value of the weights
        Specified by:
        getWeight in interface NeuronModel
        Returns:
        array of the weights
      • setWeight

        public void setWeight(double[] weight)
        Set weights from array as parameter
        Specified by:
        setWeight in interface NeuronModel
        Parameters:
        weight - array of the weights
      • getValue

        public double getValue(double[] inputVector)
        Return value of the neuron after activation.
        Specified by:
        getValue in interface NeuronModel
        Parameters:
        inputVector - input vector for neuron
        Returns:
        return
      • getActivationFunction

        public ActivationFunctionModel getActivationFunction()
        Return reference to activation function
        Returns:
        reference to activation function
      • setActivationFunction

        public void setActivationFunction(ActivationFunctionModel activationFunction)
        Set activation function
        Parameters:
        activationFunction - reference to activation function

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.