Package oracle.pgx.config.mllib
Enum ActivationFunction
- java.lang.Object
-
- java.lang.Enum<ActivationFunction>
-
- oracle.pgx.config.mllib.ActivationFunction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ActivationFunction>
public enum ActivationFunction extends java.lang.Enum<ActivationFunction>
Activation functions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEAKY_RELU
f(x) = x if x > 0, 0.01x otherwiseLINEAR
f(x) = xRELU
f(x) = max(x, 0)TANH
f(x) = tanh(x)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
LEAKY_RELU
public static final ActivationFunction LEAKY_RELU
f(x) = x if x > 0, 0.01x otherwise
-
RELU
public static final ActivationFunction RELU
f(x) = max(x, 0)
-
LINEAR
public static final ActivationFunction LINEAR
f(x) = x
-
TANH
public static final ActivationFunction TANH
f(x) = tanh(x)
-
-
Method Detail
-
values
public static ActivationFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ActivationFunction c : ActivationFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivationFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-