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)
Activationactivate in class Activationx - The input to function.public double derivative(double x)
Activationderivative in class Activationx - The input to the function.