public enum OutputFunction extends java.lang.Enum<OutputFunction>
| Enum Constant and Description |
|---|
LINEAR
Linear/Identity function.
|
SIGMOID
Logistic sigmoid function: sigmoid(v)=1/(1+exp(-v)).
|
SOFTMAX
Softmax for multi-class cross entropy objection function.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
f(double[] x)
The output function.
|
abstract void |
g(Cost cost,
double[] g,
double[] y)
The gradient function.
|
static OutputFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OutputFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OutputFunction LINEAR
public static final OutputFunction SIGMOID
public static final OutputFunction SOFTMAX
public static OutputFunction[] values()
for (OutputFunction c : OutputFunction.values()) System.out.println(c);
public static OutputFunction 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 abstract void f(double[] x)
x - the input vector.public abstract void g(Cost cost, double[] g, double[] y)
cost - the cost function of neural network.g - the gradient vector. On input, it holds target - output.
On output, it is the gradient.y - the output vector.