public interface ActivationFunction
Modifier and Type | Method and Description |
---|---|
void |
f(double[] x)
The output function.
|
void |
g(double[] g,
double[] y)
The gradient function.
|
static ActivationFunction |
linear()
Linear/Identity function.
|
java.lang.String |
name()
Returns the name of activation function.
|
static ActivationFunction |
rectifier()
The rectifier activation function max(0, x).
|
static ActivationFunction |
sigmoid()
Logistic sigmoid function: sigmoid(v)=1/(1+exp(-v)).
|
static ActivationFunction |
tanh()
Hyperbolic tangent activation function.
|
java.lang.String name()
void f(double[] x)
x
- the input vector.void g(double[] g, double[] y)
g
- the gradient vector. On input, it holds W'*g, where W and g are the
weight matrix and gradient of upper layer, respectively.
On output, it is the gradient of this layer.y
- the output vector.static ActivationFunction linear()
static ActivationFunction rectifier()
static ActivationFunction sigmoid()
static ActivationFunction tanh()