Interface ActivationFunction

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double apply​(double input)
      Applies the activation function on the given element.
      de.jungblut.math.DoubleMatrix apply​(de.jungblut.math.DoubleMatrix matrix)
      Applies the gradient of the activation function on each element in the given matrix.
      de.jungblut.math.DoubleVector apply​(de.jungblut.math.DoubleVector vector)
      Applies the activation function on each element in the given vector.
      double gradient​(double input)
      Applies the gradient of the activation function on the given element.
      de.jungblut.math.DoubleMatrix gradient​(de.jungblut.math.DoubleMatrix matrix)
      Applies the gradient of the activation function on each element in the given matrix.
      de.jungblut.math.DoubleVector gradient​(de.jungblut.math.DoubleVector vector)
      Applies the gradient of the activation function on each element in the given vector.
    • Method Detail

      • apply

        double apply​(double input)
        Applies the activation function on the given element.
      • apply

        de.jungblut.math.DoubleVector apply​(de.jungblut.math.DoubleVector vector)
        Applies the activation function on each element in the given vector.
        Parameters:
        vector - the vector to apply this function on.
        Returns:
        a new vector that contains the activated elements.
      • apply

        de.jungblut.math.DoubleMatrix apply​(de.jungblut.math.DoubleMatrix matrix)
        Applies the gradient of the activation function on each element in the given matrix.
        Parameters:
        matrix - the matrix to apply this function on.
        Returns:
        a new matrix that contains the gradient of the elements.
      • gradient

        double gradient​(double input)
        Applies the gradient of the activation function on the given element.
      • gradient

        de.jungblut.math.DoubleVector gradient​(de.jungblut.math.DoubleVector vector)
        Applies the gradient of the activation function on each element in the given vector.
        Parameters:
        vector - the vector to apply this function on.
        Returns:
        a new vector that contains the gradient of the elements.
      • gradient

        de.jungblut.math.DoubleMatrix gradient​(de.jungblut.math.DoubleMatrix matrix)
        Applies the gradient of the activation function on each element in the given matrix.
        Parameters:
        matrix - the matrix to apply this function on.
        Returns:
        a new matrix that contains the gradient of the elements.