com.anji.nn
Class SigmoidActivationFunction
java.lang.Object
com.anji.nn.SigmoidActivationFunction
- All Implemented Interfaces:
- ActivationFunction
public class SigmoidActivationFunction
- extends java.lang.Object
- implements ActivationFunction
Modified classic sigmoid. Copied from JOONE
SigmoidLayer
.
- Author:
- Philip Tucker
Field Summary |
static java.lang.String |
NAME
identifying string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NAME
public static final java.lang.String NAME
- identifying string
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
apply
public double apply(double input)
- Modified classic sigmoid.
- Specified by:
apply
in interface ActivationFunction
- Returns:
- double result of applying activation function to
input
- See Also:
ActivationFunction.apply(double)
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interface ActivationFunction
- Returns:
- ceiling value for this function
- See Also:
ActivationFunction.getMaxValue()
getMinValue
public double getMinValue()
- Specified by:
getMinValue
in interface ActivationFunction
- Returns:
- floor value for this function
- See Also:
ActivationFunction.getMinValue()
cost
public long cost()
- Specified by:
cost
in interface ActivationFunction
- Returns:
- number corresponding to cost of activation in resources
- See Also:
ActivationFunction.cost()