public enum ActivationType extends Enum<ActivationType>
ActivationFunction
Enum Constant and Description |
---|
LEAKY_RELU |
LINEAR
Linear activation is used in output layer for regression tasks.
|
RELU |
SIGMOID
Sigmoid activation is used in output layer for binary classification tasks and logistic regression.
|
SOFTMAX
SoftMax activation is typically used in output layer, for multi class classification tasks.
|
TANH |
Modifier and Type | Method and Description |
---|---|
static ActivationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActivationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivationType LINEAR
public static final ActivationType SIGMOID
public static final ActivationType TANH
public static final ActivationType RELU
public static final ActivationType LEAKY_RELU
public static final ActivationType SOFTMAX
SoftmaxOutputLayer
public static ActivationType[] values()
for (ActivationType c : ActivationType.values()) System.out.println(c);
public static ActivationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.