|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.activation.SigmoidActivationFunction
The sigmoid activation function. This is probably the most popular non-linear squashing function used in neural networks. The activation value is computed as per the sigmoid function 1/(1 + exp(-x)). The output is then scaled between the min and max values.
| Constructor Summary | |
SigmoidActivationFunction()
Default constructor. |
|
| Method Summary | |
double |
activation(double val)
Calculates the activation value as per the sigmoid function. |
double |
derivative(double val)
Calculate the derivative of the activation value. |
double |
getMax()
The maximum value for activation. |
double |
getMin()
The minimum value for activation. |
static void |
main(java.lang.String[] args)
|
void |
setMax(double val)
The maximum value for output activation. |
void |
setMin(double val)
The mimimum output value for activation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SigmoidActivationFunction()
| Method Detail |
public void setMin(double val)
val - The minimum value.public void setMax(double val)
val - The maximum value.public double getMin()
public double getMax()
public double activation(double val)
activation in interface ActivationFunctionval - The raw value.
public double derivative(double val)
derivative in interface ActivationFunctionval - The raw value.
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||