Package me.yixqiao.jlearn.activations
Class ElementwiseActivation
- java.lang.Object
-
- me.yixqiao.jlearn.activations.Activation
-
- me.yixqiao.jlearn.activations.ElementwiseActivation
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class ElementwiseActivation extends Activation
Activation that is applied across all numbers the same.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementwiseActivation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.function.Consumer<Matrix>
getActivation()
Returns a function that applies on each element.abstract java.util.function.ToDoubleFunction<java.lang.Double>
getEActivation()
Get the function that will be applied to each element.abstract 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.-
Methods inherited from class me.yixqiao.jlearn.activations.Activation
toString
-
-
-
-
Method Detail
-
getActivation
public java.util.function.Consumer<Matrix> getActivation()
Returns a function that applies on each element.- Specified by:
getActivation
in classActivation
- Returns:
- the function
-
getTransferDerivative
public java.util.function.Function<Matrix,Matrix> getTransferDerivative()
Return a function that will transfer derivative on each element.- Specified by:
getTransferDerivative
in classActivation
- Returns:
- the function
-
getEActivation
public abstract java.util.function.ToDoubleFunction<java.lang.Double> getEActivation()
Get the function that will be applied to each element.- Returns:
- the function
-
getETransferDerivative
public abstract java.util.function.ToDoubleFunction<java.lang.Double> getETransferDerivative()
Return the function to transfer derivative that will be applied to each element.- Returns:
- the function
-
-