Abstract class used to derive classes that calculates the learning rate
Template for a function to define the parameters of the learning rate function
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(learning_rate_function_base) | :: | learning_rate_fn | ||||
real(kind=wp) | :: | lambda0 | ||||
real(kind=wp) | :: | tau |
Template for a function that calculates the learning rate Import section
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(learning_rate_function_base) | :: | learning_rate_fn |
An |
|||
real(kind=wp), | intent(inout) | :: | iteration |
A real variable with the current iteration |
A real variable with the learning rate
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