Class ART1

  • All Implemented Interfaces:
    Serializable, MLClassification, MLInput, MLInputOutput, MLMethod, MLOutput, MLProperties, MLResettable

    public class ART1extends ARTimplements MLResettable, MLClassification
    Implements an ART1 neural network. An ART1 neural network is trained to recognize bipolar patterns as it is presented data. There is no distinct learning phase, like there is with other neural network types. The ART1 neural network is a type of Adaptive Resonance Theory (ART) neural network. ART1 was developed by Stephen Grossberg and Gail Carpenter. This neural network type supports only bipolar input. The ART1 neural network is trained as it is used. New patterns are presented to the ART1 network, and they are classified into either new, or existing, classes. Once the maximum number of classes have been used the network will report that it is out of classes. ART1 neural networks are used for classification. There are essentially 2 layers in an ART1 network. The first, named the F1 layer, acts as the input. The F1 layer receives bipolar patterns that the network is to classify. The F2 layer specifies the maximum number classes that the ART1 network can recognize. Plasticity is an important part for all Adaptive Resonance Theory (ART) neural networks. Unlike most neural networks, ART1 does not have a distinct training and usage stage. The ART1 network will learn as it is used.
    See Also:
    Serialized Form
    • Constructor Detail

      • ART1

        public ART1()
        Default constructor, used mainly for persistence.
      • ART1

        public ART1(int theF1Count,    int theF2Count)
        Construct the ART1 network.
        theF1Count - The neuron count for the f1 layer.
        theF2Count - The neuron count for the f2 layer.
    • Method Detail

      • adjustWeights

        public final void adjustWeights()
        Adjust the weights for the pattern just presented.
      • classify

        public final int classify(MLData input)
        Classify the input data to a class number.
        Specified by:
        classify in interface MLClassification
        input - The input data.
        The class that the data belongs to.
      • compute

        public final void compute(BiPolarNeuralData input,           BiPolarNeuralData output)
        Compute the output from the ART1 network. This can be called directly or used by the BasicNetwork class. Both input and output should be bipolar numbers.
        input - The input to the network.
        output - The output from the network.
      • compute

        public final MLData compute(MLData input)
        Compute the output for the BasicNetwork class.
        input - The input to the network.
        The output from the network.
      • getA1

        public final double getA1()
        The A1 parameter.
      • getB1

        public final double getB1()
        The B1 parameter.
      • getC1

        public final double getC1()
        The C1 parameter.
      • getD1

        public final double getD1()
        The D1 parameter.
      • getF1Count

        public final int getF1Count()
        the f1Count
      • getF2Count

        public final int getF2Count()
        the f2Count
      • getInputCount

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

        public final double getL()
        The L parameter.
      • getNoWinner

        public final int getNoWinner()
        This is the value that is returned if there is no winner. This value is generally set to the index of the last classes, plus 1. For example, if there were 3 classes, the network would return 0-2 to represent what class was found, in this case the no winner property would be set to 3.
      • getOutputCount

        public final int getOutputCount()
        Specified by:
        getOutputCount in interface MLOutput
        The number of neurons in the output count, which is the f2 layer count.
      • getVigilance

        public final double getVigilance()
        The vigilance parameter.
      • getWeightsF1toF2

        public final Matrix getWeightsF1toF2()
        the weightsF1toF2
      • getWeightsF2toF1

        public final Matrix getWeightsF2toF1()
        the weightsF2toF1
      • getWinner

        public final int getWinner()
        The winning neuron.
      • hasWinner

        public final boolean hasWinner()
        Does this network have a "winner"?
      • magnitude

        public final double magnitude(BiPolarNeuralData input)
        Get the magnitude of the specified input.
        input - The input to calculate the magnitude for.
        The magnitude of the specified pattern.
      • reset

        public final void reset()
        Reset the weight matrix back to starting values.
        Specified by:
        reset in interface MLResettable
      • reset

        public final void reset(int seed)
        Reset with a specic seed.
        Specified by:
        reset in interface MLResettable
        seed - The seed to reset with.
      • setA1

        public final void setA1(double theA1)
        Set the A1 parameter.
        theA1 - The new value.
      • setB1

        public final void setB1(double theB1)
        Set the B1 parameter.
        theB1 - The new value.
      • setC1

        public final void setC1(double theC1)
        Set the C1 parameter.
        theC1 - The new value.
      • setD1

        public final void setD1(double theD1)
        Set the D1 parameter.
        theD1 - The new value.
      • setF1Count

        public final void setF1Count(int i)
        Set the F1 count. The F1 layer is the input layer.
        i - The count.
      • setF2Count

        public final void setF2Count(int i)
        Set the F2 count. The F2 layer is the output layer.
        i - The count.
      • setL

        public final void setL(double theL)
        Set the L parameter.
        theL - The new value.
      • setNoWinner

        public final void setNoWinner(int i)
        Set the i parameter.
        i - The new value.
      • setVigilance

        public final void setVigilance(double theVigilance)
        Set the vigilance.
        theVigilance - The new value.
      • setWeightsF1toF2

        public final void setWeightsF1toF2(Matrix matrix)
        Set the f1 to f2 matrix.
        matrix - The new matrix.
      • setWeightsF2toF1

        public final void setWeightsF2toF1(Matrix matrix)
        Set the f2 to f1 matrix.
        matrix - The new matrix.

SCaVis 2.2 © jWork.ORG