public static enum NeuralNetwork.ActivationFunction extends java.lang.Enum<NeuralNetwork.ActivationFunction>
Enum Constant and Description |
---|
LOGISTIC_SIGMOID
Logistic sigmoid activation function (default): sigma(v)=1/(1+exp(-v))
|
TANH
Hyperbolic tangent activation function: f(v)=tanh(v)
|
Modifier and Type | Method and Description |
---|---|
static NeuralNetwork.ActivationFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NeuralNetwork.ActivationFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NeuralNetwork.ActivationFunction LOGISTIC_SIGMOID
public static final NeuralNetwork.ActivationFunction TANH
public static NeuralNetwork.ActivationFunction[] values()
for (NeuralNetwork.ActivationFunction c : NeuralNetwork.ActivationFunction.values()) System.out.println(c);
public static NeuralNetwork.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 null