hyperparameters_t Derived Type

type, public :: hyperparameters_t


Inherited by

type~~hyperparameters_t~~InheritedByGraph type~hyperparameters_t hyperparameters_t type~training_configuration_t training_configuration_t type~training_configuration_t->type~hyperparameters_t hyperparameters_

Components

Type Visibility Attributes Name Initial
real, private :: learning_rate_ = 1.5
integer, private :: mini_batches_ = 10
character(len=:), private, allocatable :: optimizer_

Constructor

public interface hyperparameters_t

  • private pure module function from_components(mini_batches, learning_rate, optimizer) result(hyperparameters)

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: mini_batches
    real, intent(in) :: learning_rate
    character(len=*), intent(in) :: optimizer

    Return Value type(hyperparameters_t)

  • private pure module function from_json(lines) result(hyperparameters)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: lines(:)

    Return Value type(hyperparameters_t)


Type-Bound Procedures

procedure, public :: equals

procedure, public :: learning_rate

  • interface

    private elemental module function learning_rate(self) result(rate)

    Arguments

    Type IntentOptional Attributes Name
    class(hyperparameters_t), intent(in) :: self

    Return Value real(kind=rkind)

procedure, public :: mini_batches

  • interface

    private elemental module function mini_batches(self) result(num_mini_batches)

    Arguments

    Type IntentOptional Attributes Name
    class(hyperparameters_t), intent(in) :: self

    Return Value integer

generic, public :: operator(==) => equals

  • private interface equals()

    Arguments

    None

procedure, public :: optimizer_name

  • interface

    private elemental module function optimizer_name(self) result(identifier)

    Arguments

    Type IntentOptional Attributes Name
    class(hyperparameters_t), intent(in) :: self

    Return Value type(string_t)

procedure, public :: to_json

  • interface

    private pure module function to_json(self) result(lines)

    Arguments

    Type IntentOptional Attributes Name
    class(hyperparameters_t), intent(in) :: self

    Return Value type(string_t), allocatable, (:)