pub struct AdamConfig {
pub learning_rate: f64,
pub beta1: f64,
pub beta2: f64,
pub epsilon: f64,
pub max_iterations: usize,
pub tolerance: f64,
}Expand description
Configuration for Adam optimizer.
Fields§
§learning_rate: f64Base learning rate.
beta1: f64Exponential decay for first moment.
beta2: f64Exponential decay for second moment.
epsilon: f64Numerical epsilon.
max_iterations: usizeMaximum optimization iterations.
tolerance: f64Gradient norm tolerance for convergence.
Trait Implementations§
Source§impl Clone for AdamConfig
impl Clone for AdamConfig
Source§fn clone(&self) -> AdamConfig
fn clone(&self) -> AdamConfig
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 AdamConfig
impl Debug for AdamConfig
Source§impl Default for AdamConfig
impl Default for AdamConfig
impl Copy for AdamConfig
Auto Trait Implementations§
impl Freeze for AdamConfig
impl RefUnwindSafe for AdamConfig
impl Send for AdamConfig
impl Sync for AdamConfig
impl Unpin for AdamConfig
impl UnsafeUnpin for AdamConfig
impl UnwindSafe for AdamConfig
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