pub struct RMSpropConfig {
    pub lr: f32,
    pub alpha: f32,
    pub eps: f32,
    pub momentum: Option<f32>,
    pub centered: bool,
    pub weight_decay: Option<WeightDecay>,
}
Expand description

Configuration of hyperparameters for RMSprop.

Fields

lr: f32

Learning rate. Defaults to 1e-2.

alpha: f32

Value for exponential moving average. Defaults to 0.9.

eps: f32

Epsilon for stability. Defaults to 1e-8.

momentum: Option<f32>

Optional momentum. Defaults to None.

centered: bool

Whether the avg should be centered by the grad’s avg value. Defaults to false.

weight_decay: Option<WeightDecay>

Optional weight decay. Defaults to None.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.