public final class TanhActivationFunction extends AbstractActivationFunction
FastMath.| Constructor and Description |
|---|
TanhActivationFunction() |
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double input)
Applies the activation function on the given element.
|
double |
gradient(double input)
Applies the gradient of the activation function on the given element.
|
apply, apply, gradient, gradient, newInstance, newInstance, toStringpublic double apply(double input)
ActivationFunctionpublic double gradient(double input)
ActivationFunctionCopyright © 2016. All rights reserved.