|
Mila 0.13.48
Deep Neural Network Library
|
Configuration for AdamW optimizer. More...


Public Member Functions | |
| void | fromMetadata (const SerializationMetadata &meta) override |
| Populate configuration from provided metadata. | |
| float | getBeta1 () const noexcept |
| float | getBeta2 () const noexcept |
| float | getEpsilon () const noexcept |
| float | getLearningRate () const noexcept |
| float | getWeightDecay () const noexcept |
| SerializationMetadata | toMetadata () const override |
| Convert configuration into SerializationMetadata. | |
| std::string | toString () const override |
| Produce a short, human-readable summary of the configuration. | |
| void | validate () const override |
| Validate configuration parameters. | |
| template<typename Self> | |
| decltype(auto) | withBeta1 (this Self &&self, float beta1) noexcept |
| template<typename Self> | |
| decltype(auto) | withBeta2 (this Self &&self, float beta2) noexcept |
| template<typename Self> | |
| decltype(auto) | withEpsilon (this Self &&self, float epsilon) noexcept |
| template<typename Self> | |
| decltype(auto) | withLearningRate (this Self &&self, float learning_rate) noexcept |
| template<typename Self> | |
| decltype(auto) | withWeightDecay (this Self &&self, float weight_decay) noexcept |
| Public Member Functions inherited from Mila::Dnn::ComponentConfig | |
| virtual | ~ComponentConfig ()=default |
| Virtual destructor for polymorphic base. | |
Private Attributes | |
| float | beta1_ { 0.9f } |
| float | beta2_ { 0.999f } |
| float | epsilon_ { 1e-8f } |
| float | learning_rate_ { 0.001f } |
| float | weight_decay_ { 0.01f } |
Configuration for AdamW optimizer.
Encapsulates hyperparameters for AdamW and provides fluent setters, validation and conversion to/from the framework's metadata abstraction.
|
inlineoverridevirtual |
Populate configuration from provided metadata.
Missing keys are ignored; type-safe try-get helpers are used so incorrect/missing entries don't throw but simply leave defaults intact.
Implements Mila::Dnn::ComponentConfig.

|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtual |
Convert configuration into SerializationMetadata.
Keys produced:
Implements Mila::Dnn::ComponentConfig.

|
inlineoverridevirtual |
Produce a short, human-readable summary of the configuration.
Implementations should return a compact, single-line description suitable for logging and debugging.
Implements Mila::Dnn::ComponentConfig.
|
inlineoverridevirtual |
Validate configuration parameters.
Throws std::invalid_argument on invalid parameters.
Implements Mila::Dnn::ComponentConfig.

|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |