pub struct AdamParams {
pub learning_rate: f32,
pub beta1: f32,
pub beta2: f32,
pub epsilon: f32,
pub max_iter: usize,
pub tolerance: f32,
}Expand description
Adam optimizer parameters
Fields§
§learning_rate: f32Learning rate
beta1: f32First moment decay rate (typically 0.9)
beta2: f32Second moment decay rate (typically 0.999)
epsilon: f32Small constant for numerical stability (typically 1e-8)
max_iter: usizeMaximum number of iterations
tolerance: f32Convergence tolerance
Trait Implementations§
Source§impl Clone for AdamParams
impl Clone for AdamParams
Source§fn clone(&self) -> AdamParams
fn clone(&self) -> AdamParams
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 AdamParams
impl Debug for AdamParams
Auto Trait Implementations§
impl Freeze for AdamParams
impl RefUnwindSafe for AdamParams
impl Send for AdamParams
impl Sync for AdamParams
impl Unpin for AdamParams
impl UnsafeUnpin for AdamParams
impl UnwindSafe for AdamParams
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