pub struct AdamOptions {
pub beta1: f64,
pub beta2: f64,
pub epsilon: f64,
pub learning_rate: f64,
}
Expand description
Settings for Adam step size adaptation
Fields§
§beta1: f64
First moment decay rate (default: 0.9)
beta2: f64
Second moment decay rate (default: 0.999)
epsilon: f64
Small constant for numerical stability (default: 1e-8)
learning_rate: f64
Learning rate (default: 0.001)
Trait Implementations§
Source§impl Clone for AdamOptions
impl Clone for AdamOptions
Source§fn clone(&self) -> AdamOptions
fn clone(&self) -> AdamOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AdamOptions
impl Debug for AdamOptions
Source§impl Default for AdamOptions
impl Default for AdamOptions
Source§impl Serialize for AdamOptions
impl Serialize for AdamOptions
impl Copy for AdamOptions
Auto Trait Implementations§
impl Freeze for AdamOptions
impl RefUnwindSafe for AdamOptions
impl Send for AdamOptions
impl Sync for AdamOptions
impl Unpin for AdamOptions
impl UnwindSafe for AdamOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more