Enum Class ActivationType

java.lang.Object
java.lang.Enum<ActivationType>
deepnetts.net.layers.activation.ActivationType
All Implemented Interfaces:
Serializable, Comparable<ActivationType>, Constable

public enum ActivationType extends Enum<ActivationType>
Supported types of activation functions.
See Also:
  • Enum Constant Details

    • LINEAR

      public static final ActivationType LINEAR
      Linear activation is used in output layer for regression tasks, or just passing input forward as it is.
    • SIGMOID

      public static final ActivationType SIGMOID
      Sigmoid activation is used in output layer for binary classification tasks and logistic regression.
    • TANH

      public static final ActivationType TANH
    • RELU

      public static final ActivationType RELU
    • LEAKY_RELU

      public static final ActivationType LEAKY_RELU
    • SOFTMAX

      public static final ActivationType SOFTMAX
      SoftMax activation is typically used in output layer, for multi class classification tasks.
      See Also:
  • Method Details

    • values

      public static ActivationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ActivationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null