Package me.yixqiao.jlearn.activations
Class Sigmoid
- java.lang.Object
-
- me.yixqiao.jlearn.activations.Activation
-
- me.yixqiao.jlearn.activations.ElementwiseActivation
-
- me.yixqiao.jlearn.activations.Sigmoid
-
- All Implemented Interfaces:
java.io.Serializable
public class Sigmoid extends ElementwiseActivation
Sigmoid activation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Sigmoid()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.ToDoubleFunction<java.lang.Double>
getEActivation()
Get the function that will be applied to each element.java.util.function.ToDoubleFunction<java.lang.Double>
getETransferDerivative()
Return the function to transfer derivative that will be applied to each element.java.util.function.Function<Matrix,Matrix>
getTransferDerivative()
Return a function that will transfer derivative on each element.java.lang.String
toString()
Get a string representation.-
Methods inherited from class me.yixqiao.jlearn.activations.ElementwiseActivation
getActivation
-
-
-
-
Method Detail
-
getTransferDerivative
public java.util.function.Function<Matrix,Matrix> getTransferDerivative()
Description copied from class:ElementwiseActivation
Return a function that will transfer derivative on each element.- Overrides:
getTransferDerivative
in classElementwiseActivation
- Returns:
- the function
-
toString
public java.lang.String toString()
Description copied from class:Activation
Get a string representation.- Specified by:
toString
in classActivation
- Returns:
- the string
-
getEActivation
public java.util.function.ToDoubleFunction<java.lang.Double> getEActivation()
Description copied from class:ElementwiseActivation
Get the function that will be applied to each element.- Specified by:
getEActivation
in classElementwiseActivation
- Returns:
- the function
-
getETransferDerivative
public java.util.function.ToDoubleFunction<java.lang.Double> getETransferDerivative()
Description copied from class:ElementwiseActivation
Return the function to transfer derivative that will be applied to each element.- Specified by:
getETransferDerivative
in classElementwiseActivation
- Returns:
- the function
-
-