public class StepActivationFunction extends AbstractActivationFunction
| Constructor and Description |
|---|
StepActivationFunction(double threshold) |
| 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.