pub struct L2(pub f64);
Expand description
L2 regularization with the given lambda value. Also known as Ridge, used to encourage small weights.
Tuple Fields§
§0: f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for L2
impl RefUnwindSafe for L2
impl Send for L2
impl Sync for L2
impl Unpin for L2
impl UnwindSafe for L2
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