Documentation of 'org.joone.net.NestedNeuralLayer' Java class
NestedNeuralLayer
org.joone.net

Class NestedNeuralLayer

    • Constructor Detail

      • NestedNeuralLayer

        public NestedNeuralLayer()
      • NestedNeuralLayer

        public NestedNeuralLayer(java.lang.String ElemName)
    • Method Detail

      • getNeuralNet

        public java.lang.String getNeuralNet()
      • setNeuralNet

        public void setNeuralNet(java.lang.String NNFile)
      • start

        public void start()
        Description copied from class: Layer
        Starts the Layer
        Specified by:
        start in interface NeuralLayer
        Overrides:
        start in class Layer
      • stop

        public void stop()
        Description copied from class: Layer
        Stops the Layer
        Overrides:
        stop in class Layer
      • getRows

        public int getRows()
        Description copied from class: Layer
        Returns the dimension (# of neurons) of the Layer
        Specified by:
        getRows in interface NeuralLayer
        Overrides:
        getRows in class Layer
        Returns:
        the number of neurons in the layer
      • setRows

        public void setRows(int p1)
        Description copied from class: Layer
        Sets the dimension (# of neurons) of the Layer
        Specified by:
        setRows in interface NeuralLayer
        Overrides:
        setRows in class Layer
        Parameters:
        p1 - The number of the neurons contained in the Layer
      • addNoise

        public void addNoise(double p1)
        Description copied from class: Layer
        Adds a noise componentto the biases of the layer and to all the input connected synapses.
        Specified by:
        addNoise in interface NeuralLayer
        Overrides:
        addNoise in class Layer
        Parameters:
        p1 - the noise's amplitude in terms of distance from zero; e.g. a value equal 0.3 means a noise range from -0.3 to 0.3
      • randomize

        public void randomize(double amplitude)
        Description copied from class: Layer
        Initialize the weights of the biases and of all the connected synapses
        Overrides:
        randomize in class Layer
        Parameters:
        amplitude - the amplitude of the applied noise
      • getBias

        public Matrix getBias()
        Description copied from class: Layer
        Return the bias matrix
        Specified by:
        getBias in interface NeuralLayer
        Overrides:
        getBias in class Layer
        Returns:
        the layer biases
      • getAllOutputs

        public java.util.Vector getAllOutputs()
        Description copied from class: Layer
        Returns the vector of the output listeners
        Specified by:
        getAllOutputs in interface NeuralLayer
        Overrides:
        getAllOutputs in class Layer
        Returns:
        the connected output pattern listeners
      • getLayerName

        public java.lang.String getLayerName()
        Description copied from class: Layer
        Returns the name of the layer
        Specified by:
        getLayerName in interface NeuralLayer
        Overrides:
        getLayerName in class Layer
        Returns:
        the name of the layer
      • setAllInputs

        public void setAllInputs(java.util.Vector p1)
        Description copied from class: Layer
        Sets the Vector that contains all the input listeners. Can be useful to set the input synapses taken from another Layer
        Specified by:
        setAllInputs in interface NeuralLayer
        Overrides:
        setAllInputs in class Layer
        Parameters:
        p1 - The vector containing the list of input synapses
      • getAllInputs

        public java.util.Vector getAllInputs()
        Description copied from class: Layer
        Returns the vector of the input listeners
        Specified by:
        getAllInputs in interface NeuralLayer
        Overrides:
        getAllInputs in class Layer
        Returns:
        the connected input pattern listeners
      • setBias

        public void setBias(Matrix p1)
        Description copied from class: Layer
        Sets the matrix of biases
        Specified by:
        setBias in interface NeuralLayer
        Overrides:
        setBias in class Layer
        Parameters:
        p1 - The Matrix object containing the biases
      • setLayerName

        public void setLayerName(java.lang.String p1)
        Description copied from class: Layer
        Sets the name of the layer
        Specified by:
        setLayerName in interface NeuralLayer
        Overrides:
        setLayerName in class Layer
        Parameters:
        p1 - The name
      • setAllOutputs

        public void setAllOutputs(java.util.Vector p1)
        Description copied from class: Layer
        Sets the Vector that contains all the output listeners. Can be useful to set the output synapses taken from another Layer
        Specified by:
        setAllOutputs in interface NeuralLayer
        Overrides:
        setAllOutputs in class Layer
        Parameters:
        p1 - The vector containing the list of output synapses
      • copyInto

        public NeuralLayer copyInto(NeuralLayer p1)
        Description copied from class: Layer
        Copies one layer into another, to obtain a type-transformation from one kind of Layer to another. The old Layer is disconnected from the net, and the new Layer takes its place.
        Specified by:
        copyInto in interface NeuralLayer
        Overrides:
        copyInto in class Layer
        Parameters:
        p1 - the new layer with which to replace this one
        Returns:
        The new layer
      • isRunning

        public boolean isRunning()
        Description copied from class: Layer
        Determine whether the execution thread is running
        Specified by:
        isRunning in interface NeuralLayer
        Overrides:
        isRunning in class Layer
        Returns:
        whether it is running
      • getNestedNeuralNet

        public NeuralNet getNestedNeuralNet()
        Getter for property NestedNeuralNet.
        Returns:
        Value of property NestedNeuralNet.
      • setNestedNeuralNet

        public void setNestedNeuralNet(NeuralNet newNeuralNet)
        Setter for property NestedNeuralNet.
        Parameters:
        NestedNeuralNet - New value of property NestedNeuralNet.
      • isLearning

        public boolean isLearning()
        Getter for property learning.
        Returns:
        Value of property learning.
      • setLearning

        public void setLearning(boolean learning)
        Setter for property learning.
        Parameters:
        learning - New value of property learning.
      • check

        public java.util.TreeSet check()
        Description copied from class: Layer
        Get check messages from listeners. Subclasses should call this method from thier own check method.
        Specified by:
        check in interface NeuralLayer
        Overrides:
        check in class Layer
        Returns:
        validation errors.
        See Also:
        NeuralLayer
      • getEmbeddedNet

        public java.io.File getEmbeddedNet()
      • setEmbeddedNet

        public void setEmbeddedNet(java.io.File embeddedNet)
      • fwdRun

        public void fwdRun(Pattern pattIn)
        Description copied from class: Layer
        Implementation code for the single-thread version of Joone /********************************************************* /** This method serves to a single forward step when the Layer is called from an external thread
        Overrides:
        fwdRun in class Layer
      • revRun

        public void revRun(Pattern pattIn)
        Description copied from class: Layer
        This method serves to a single backward step when the Layer is called from an external thread
        Overrides:
        revRun in class Layer

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.