Class SoftSign

java.lang.Object
deepnetts.net.layers.activation.SoftSign
All Implemented Interfaces:
ActivationFunction, Serializable, Consumer<Tensor>

public final class SoftSign extends Object implements ActivationFunction, Serializable
Soft sign activation function
See Also:
  • Constructor Details

    • SoftSign

      public SoftSign()
  • Method Details

    • getValue

      public float getValue(float x)
      Description copied from interface: ActivationFunction
      Returns the value of activation function for specified input x
      Specified by:
      getValue in interface ActivationFunction
      Parameters:
      x - input for activation
      Returns:
      value of activation function
    • getPrime

      public float getPrime(float x)
      Note that this method accepts x as param not y as others
      Specified by:
      getPrime in interface ActivationFunction
      Parameters:
      x -
      Returns:
    • apply

      public void apply(Tensor3D tensor, int channel)
      Specified by:
      apply in interface ActivationFunction
    • apply

      public void apply(Tensor4D tensor, int batchIdx)
      Specified by:
      apply in interface ActivationFunction
    • apply

      public void apply(Tensor tensor, int from, int to)
      Specified by:
      apply in interface ActivationFunction