Class TanhActivationFunction

    • Constructor Detail

      • TanhActivationFunction

        public TanhActivationFunction()
    • Method Detail

      • apply

        public double apply​(double input)
        Description copied from interface: ActivationFunction
        Applies the activation function on the given element.
      • gradient

        public double gradient​(double input)
        Description copied from interface: ActivationFunction
        Applies the gradient of the activation function on the given element.