public enum ActivationFunction extends java.lang.Enum<ActivationFunction>
| Enum Constant and Description |
|---|
LEAKY_RELU
f(x) = x if x > 0, 0.01x otherwise
|
LINEAR
f(x) = x
|
RELU
f(x) = max(x, 0)
|
TANH
f(x) = tanh(x)
|
| Modifier and Type | Method and Description |
|---|---|
static ActivationFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActivationFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivationFunction LEAKY_RELU
public static final ActivationFunction LINEAR
public static final ActivationFunction RELU
public static final ActivationFunction TANH
public static ActivationFunction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ActivationFunction[] values()
for (ActivationFunction c : ActivationFunction.values()) System.out.println(c);