Package me.yixqiao.jlearn.activations
Class Activation
- java.lang.Object
-
- me.yixqiao.jlearn.activations.Activation
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ElementwiseActivation
,Softmax
public abstract class Activation extends java.lang.Object implements java.io.Serializable
Abstract activation function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Activation()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.util.function.Consumer<Matrix>
getActivation()
Get a function that will apply the activation.abstract java.util.function.Function<Matrix,Matrix>
getTransferDerivative()
Get a function that will transfer derivative onto an already-activated matrix.abstract java.lang.String
toString()
Get a string representation.
-
-
-
Method Detail
-
getActivation
public abstract java.util.function.Consumer<Matrix> getActivation()
Get a function that will apply the activation.- Returns:
- the function
-
getTransferDerivative
public abstract java.util.function.Function<Matrix,Matrix> getTransferDerivative()
Get a function that will transfer derivative onto an already-activated matrix.- Returns:
- the function
-
toString
public abstract java.lang.String toString()
Get a string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string
-
-