public class Tanh extends Activation
Constructor and Description |
---|
Tanh() |
Modifier and Type | Method and Description |
---|---|
double |
activate(double x)
The activation function.
|
double |
derivative(double x)
The derivative of the activation function.
|
public double activate(double x)
Activation
activate
in class Activation
x
- The input to function.public double derivative(double x)
Activation
derivative
in class Activation
x
- The input to the function.