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 final 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 final MLData compute(MLData input)
        Compute regression.
        Specified by:
        compute in interface MLRegression
        Parameters:
        input - The input data.
        Returns:
        The output data.
      • getFlat

        public final FlatNetwork getFlat()
        Specified by:
        getFlat in interface ContainsFlat
        Returns:
        The flat network associated with this neural network.
      • getInputCount

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

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

        public final 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 final void setRBF(RadialBasisFunction[] rbf)
        Set the RBF's.
        Parameters:
        rbf - The RBF's.
      • setRBFCentersAndWidths

        public final 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 final 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 final 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.

SCaVis 2.0 © jWork.ORG