public class Fun
extends java.lang.Object
They can be used in the arguments of neural network's constructor.
Modifier and Type | Field and Description |
---|---|
static Fun |
IDENTITY
Identity is a linear function where the output is equal to the input.
|
static Fun |
LEAKY_RE_LU
LeakyReLU gives a small proportion of x if x is negative and x otherwise.
|
static Fun |
SIGMOID
Sigmoid takes any real value as input and outputs values in the range of 0 to 1.
|
static Fun |
TANH
Tanh is similar to Sigmoid, but outputs values in the range of -1 and 1.
|
public static final Fun SIGMOID
x -> 1.0 / (1.0 + Math.exp(-x))
public static final Fun IDENTITY
x -> x
public static final Fun TANH
x -> Math.tanh(x)
public static final Fun LEAKY_RE_LU
x -> x < 0.0 ? 0.01 * x : x