learning_rate_function_base Derived Type

type, public, abstract :: learning_rate_function_base

Abstract class used to derive classes that calculates the learning rate


Inherited by

type~~learning_rate_function_base~~InheritedByGraph type~learning_rate_function_base learning_rate_function_base type~exponential_learning_rate_function exponential_learning_rate_function type~exponential_learning_rate_function->type~learning_rate_function_base type~gaussian_learning_rate_function gaussian_learning_rate_function type~gaussian_learning_rate_function->type~learning_rate_function_base type~linear_learning_rate_function linear_learning_rate_function type~linear_learning_rate_function->type~learning_rate_function_base

Type-Bound Procedures

procedure(learning_rate_set_parameters), public, deferred :: set_parameters

  • subroutine learning_rate_set_parameters(learning_rate_fn, lambda0, tau) Prototype

    Template for a function to define the parameters of the learning rate function

    Arguments

    Type IntentOptional Attributes Name
    class(learning_rate_function_base) :: learning_rate_fn
    real(kind=wp) :: lambda0
    real(kind=wp) :: tau

procedure(learning_rate_calculate), public, deferred :: calculate

  • function learning_rate_calculate(learning_rate_fn, iteration) result(alpha) Prototype

    Template for a function that calculates the learning rate Import section

    Arguments

    Type IntentOptional Attributes Name
    class(learning_rate_function_base) :: learning_rate_fn

    An learning_rate_function_base object

    real(kind=wp), intent(inout) :: iteration

    A real variable with the current iteration

    Return Value real(kind=wp)

    A real variable with the learning rate

Source Code

    type,abstract :: learning_rate_function_base
    !! Abstract class used to derive classes that calculates the learning rate
        contains
            procedure(learning_rate_set_parameters),deferred :: set_parameters
            procedure(learning_rate_calculate),deferred :: calculate
    end type learning_rate_function_base