Documentation of 'org.encog.neural.flat.FlatLayer' Java class
FlatLayer
org.encog.neural.flat

Class FlatLayer

  • Direct Known Subclasses:
    BasicLayer


    public class FlatLayer
    extends java.lang.Object
    Used to configure a flat layer. Flat layers are not kept by a Flat Network, beyond setup.
    • Constructor Detail

      • FlatLayer

        public FlatLayer()
        Do not use this constructor. This was added to support serialization.
      • FlatLayer

        public FlatLayer(ActivationFunction activation,
                         int count,
                         double biasActivation)
        Construct a flat layer.
        Parameters:
        activation - The activation function.
        count - The neuron count.
        biasActivation - The bias activation.
      • FlatLayer

        public FlatLayer(ActivationFunction activation,
                         int count,
                         double biasActivation,
                         double dropoutRate)
    • Method Detail

      • getBiasActivation

        public double getBiasActivation()
        Returns:
        Get the bias activation.
      • getContextCount

        public int getContextCount()
        Returns:
        The number of neurons our context is fed by.
      • getContextFedBy

        public FlatLayer getContextFedBy()
        Returns:
        The layer that feeds this layer's context.
      • getCount

        public int getCount()
        Returns:
        the count
      • getTotalCount

        public int getTotalCount()
        Returns:
        The total number of neurons on this layer, includes context, bias and regular.
      • hasBias

        public boolean hasBias()
        Returns:
        the bias
      • setActivation

        public void setActivation(ActivationFunction activation)
        Parameters:
        activation - the activation to set
      • setBiasActivation

        public void setBiasActivation(double a)
        Set the bias activation.
        Parameters:
        a - The bias activation.
      • setContextFedBy

        public void setContextFedBy(FlatLayer from)
        Set the layer that this layer's context is fed by.
        Parameters:
        from - The layer feeding.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDropoutRate

        public double getDropoutRate()
      • setDropoutRate

        public void setDropoutRate(double dropoutRate)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.