Package deepnetts.net.layers.activation
Class Sigmoid
java.lang.Object
deepnetts.net.layers.activation.Sigmoid
- All Implemented Interfaces:
ActivationFunction,Serializable,Consumer<TensorBase>
Sigmoid activation function
- Author:
- Zoran Sevarac
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapply(TensorBase tensor, int from, int to) floatgetPrime(float y) Returns the first derivative of activation function for specified output yfloatgetValue(float x) Returns the value of activation function for specified input xMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface deepnetts.net.layers.activation.ActivationFunction
accept
-
Constructor Details
-
Sigmoid
public Sigmoid()
-
-
Method Details
-
getValue
public float getValue(float x) Description copied from interface:ActivationFunctionReturns the value of activation function for specified input x- Specified by:
getValuein interfaceActivationFunction- Parameters:
x- input for activation- Returns:
- value of activation function
-
getPrime
public float getPrime(float y) Description copied from interface:ActivationFunctionReturns the first derivative of activation function for specified output y- Specified by:
getPrimein interfaceActivationFunction- Parameters:
y- output of activation function- Returns:
- first derivative of activation function
-
apply
- Specified by:
applyin interfaceActivationFunction
-
apply
- Specified by:
applyin interfaceActivationFunction
-