pub struct SGDConfig {
pub learning_rate: f64,
pub max_iterations: usize,
pub tolerance: f64,
}Expand description
Configuration for SGD.
Fields§
§learning_rate: f64Fixed learning rate.
max_iterations: usizeMaximum optimization iterations.
tolerance: f64Gradient norm tolerance for convergence.
Trait Implementations§
impl Copy for SGDConfig
Auto Trait Implementations§
impl Freeze for SGDConfig
impl RefUnwindSafe for SGDConfig
impl Send for SGDConfig
impl Sync for SGDConfig
impl Unpin for SGDConfig
impl UnsafeUnpin for SGDConfig
impl UnwindSafe for SGDConfig
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