#[non_exhaustive]pub struct SgdConfig {
pub learning_rate: f64,
pub l2: f64,
}Expand description
Configuration for Sgd.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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