com.anji.nn
Interface ActivationFunction
- All Known Implementing Classes:
- ClampedLinearActivationFunction, EvSailSigmoidActivationFunction, InverseAbsActivationFunction, LinearActivationFunction, SigmoidActivationFunction, SignedClampedLinearActivationFunction, SignedStepActivationFunction, StepActivationFunction, TanhActivationFunction, TanhCubicActivationFunction
- public interface ActivationFunction
Abstracts activation function for neurons.
- Author:
- Philip Tucker
apply
public double apply(double input)
- Apply activation function to input.
- Parameters:
input
-
- Returns:
- double result of applying activation function to
input
getMaxValue
public double getMaxValue()
- Returns:
- ceiling value for this function
getMinValue
public double getMinValue()
- Returns:
- floor value for this function
cost
public long cost()
- Returns:
- number corresponding to cost of activation in resources