RBFNetwork
org.encog.neural.rbf

Class RBFNetwork

    • Constructor Detail

      • RBFNetwork

        public RBFNetwork()
        Construct RBF network.
      • RBFNetwork

        public RBFNetwork(int inputCount,          int hiddenCount,          int outputCount,          RBFEnum t)
        Construct RBF network.
        Parameters:
        inputCount - The input count.
        hiddenCount - The hidden count.
        outputCount - The output count.
        t - The RBF type.
      • RBFNetwork

        public RBFNetwork(int inputCount,          int outputCount,          RadialBasisFunction[] rbf)
        Construct RBF network.
        Parameters:
        inputCount - The input count.
        outputCount - The output count.
        rbf - The RBF type.
    • Method Detail

      • calculateError

        public double calculateError(MLDataSet data)
        Calculate the error for this neural network.
        Specified by:
        calculateError in interface MLError
        Parameters:
        data - The training set.
        Returns:
        The error percentage.
      • compute

        public MLData compute(MLData input)
        Compute regression.
        Specified by:
        compute in interface MLRegression
        Parameters:
        input - The input data.
        Returns:
        The output data.
      • getInputCount

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

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

        public void randomizeRBFCentersAndWidths(double min,                                double max,                                RBFEnum t)
        Set the RBF components to random values.
        Parameters:
        min - Minimum random value.
        max - Max random value.
        t - The type of RBF to use.
      • setRBF

        public void setRBF(RadialBasisFunction[] rbf)
        Set the RBF's.
        Parameters:
        rbf - The RBF's.
      • setRBFCentersAndWidths

        public void setRBFCentersAndWidths(double[][] centers,                          double[] widths,                          RBFEnum t)
        Array containing center position. Row n contains centers for neuron n. Row n contains x elements for x number of dimensions.
        Parameters:
        centers - The centers.
        widths - Array containing widths. Row n contains widths for neuron n. Row n contains x elements for x number of dimensions.
        t - The RBF Function to use for this layer.
      • setRBFCentersAndWidthsEqualSpacing

        public void setRBFCentersAndWidthsEqualSpacing(double minPosition,                                      double maxPosition,                                      RBFEnum t,                                      double volumeNeuronRBFWidth,                                      boolean useWideEdgeRBFs)
        Equally spaces all hidden neurons within the n dimensional variable space.
        Parameters:
        minPosition - The minimum position neurons should be centered. Typically 0.
        maxPosition - The maximum position neurons should be centered. Typically 1
        volumeNeuronRBFWidth - The neuron width of neurons within the mesh.
        useWideEdgeRBFs - Enables wider RBF's around the boundary of the neuron mesh.
      • setRBFFunction

        public void setRBFFunction(int index,                  RBFEnum t,                  double[] centers,                  double width)
        Set an RBF function.
        Parameters:
        index - The index to set.
        t - The function type.
        centers - The centers.
        width - The width.
      • reset

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

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

        public int encodedArrayLength()
        Specified by:
        encodedArrayLength in interface MLEncodable
        Returns:
        The length of an encoded array.
      • encodeToArray

        public void encodeToArray(double[] encoded)
        Encode the object to the specified array.
        Specified by:
        encodeToArray in interface MLEncodable
        Parameters:
        encoded - The array.
      • decodeFromArray

        public void decodeFromArray(double[] encoded)
        Decode an array to this object.
        Specified by:
        decodeFromArray in interface MLEncodable
        Parameters:
        encoded - The encoded array.

SCaVis 1.8 © jWork.org