Class QuasiSigmoidDecayFunction


  • public class QuasiSigmoidDecayFunction
    extends Object
    Decay function whose shape is similar to a sigmoid.
    Class is immutable.
    Since:
    3.3
    • Constructor Detail

      • QuasiSigmoidDecayFunction

        public QuasiSigmoidDecayFunction​(double initValue,
                                         double slope,
                                         long numCall)
        Creates an instance. The function f will have the following properties:
        • f(0) = initValue
        • numCall is the inflexion point
        • slope = f'(numCall)
        Parameters:
        initValue - Initial value, i.e. value(0).
        slope - Value of the function derivative at numCall.
        numCall - Inflexion point.
        Throws:
        NotStrictlyPositiveException - if initValue <= 0.
        NumberIsTooLargeException - if slope >= 0.
        NotStrictlyPositiveException - if numCall <= 0.
    • Method Detail

      • value

        public double value​(long numCall)
        Computes the value of the learning factor.
        Parameters:
        numCall - Current step of the training task.
        Returns:
        the value of the function at numCall.