pub struct SgdConfig {
pub learning_rate: f64,
pub l2: f64,
}Expand description
Configuration for Sgd.
Fields§
§learning_rate: f64Learning rate. Must be finite and strictly positive.
l2: f64L2 regularization strength. Must be finite and non-negative.
Trait Implementations§
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