Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Activation

        public Activation()
    • 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 class java.lang.Object
        Returns:
        the string