Struct dfdx::optim::RMSpropConfig
source · [−]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
sourceimpl Clone for RMSpropConfig
impl Clone for RMSpropConfig
sourcefn clone(&self) -> RMSpropConfig
fn clone(&self) -> RMSpropConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RMSpropConfig
impl Debug for RMSpropConfig
sourceimpl Default for RMSpropConfig
impl Default for RMSpropConfig
impl Copy for RMSpropConfig
Auto Trait Implementations
impl RefUnwindSafe for RMSpropConfig
impl Send for RMSpropConfig
impl Sync for RMSpropConfig
impl Unpin for RMSpropConfig
impl UnwindSafe for RMSpropConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more