Package me.yixqiao.jlearn.activations
Class ReLU
- java.lang.Object
-
- me.yixqiao.jlearn.activations.Activation
-
- me.yixqiao.jlearn.activations.ElementwiseActivation
-
- me.yixqiao.jlearn.activations.ReLU
-
- All Implemented Interfaces:
java.io.Serializable
public class ReLU extends ElementwiseActivation
Rectified Linear Unit activation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReLU()
-
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.lang.String
toString()
Get a string representation.-
Methods inherited from class me.yixqiao.jlearn.activations.ElementwiseActivation
getActivation, getTransferDerivative
-
-
-
-
Method Detail
-
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
-
toString
public java.lang.String toString()
Description copied from class:Activation
Get a string representation.- Specified by:
toString
in classActivation
- Returns:
- the string
-
-