Documentation of 'org.encog.neural.pattern.PNNPattern' Java class
PNNPattern
org.encog.neural.pattern

Class PNNPattern

    • Constructor Detail

      • PNNPattern

        public PNNPattern()
    • Method Detail

      • addHiddenLayer

        public void addHiddenLayer(int count)
        Add a hidden layer. PNN networks do not have hidden layers, so this will throw an error.
        Specified by:
        addHiddenLayer in interface NeuralNetworkPattern
        Parameters:
        count - The number of hidden neurons.
      • getInputNeurons

        public int getInputNeurons()
        Returns:
        The number of input neurons.
      • getKernel

        public PNNKernelType getKernel()
        Returns:
        The kernel.
      • getOutmodel

        public PNNOutputMode getOutmodel()
        Returns:
        The output model.
      • getOutputNeurons

        public int getOutputNeurons()
        Returns:
        The number of output neurons.
      • setActivationFunction

        public void setActivationFunction(ActivationFunction activation)
        Set the activation function. A PNN uses a linear activation function, so this method throws an error.
        Specified by:
        setActivationFunction in interface NeuralNetworkPattern
        Parameters:
        activation - The activation function to use.
      • setInputNeurons

        public void setInputNeurons(int count)
        Set the input neuron count.
        Specified by:
        setInputNeurons in interface NeuralNetworkPattern
        Parameters:
        count - The number of neurons.
      • setKernel

        public void setKernel(PNNKernelType kernel)
        Set the kernel type.
        Parameters:
        kernel - The kernel type.
      • setOutmodel

        public void setOutmodel(PNNOutputMode outmodel)
        Set the output model.
        Parameters:
        outmodel - The output model.
      • setOutputNeurons

        public void setOutputNeurons(int count)
        Set the output neuron count.
        Specified by:
        setOutputNeurons in interface NeuralNetworkPattern
        Parameters:
        count - The number of neurons.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.