Shrinkage

shrinkage::PenaltyMaximum

Shrinkage for Rust · rust · 0.3.0

pub enum PenaltyMaximum

The smallest strength at which the zero-coefficient model is optimal.

Variants

Finite

Finite(f64)

A finite threshold, including zero when the null gradient is zero.

0

0: f64

Unbounded

Unbounded

No finite strength makes the zero-coefficient model optimal.

Inherent implementation

impl PenaltyMaximum

finite

pub fn finite(self) -> Option<f64>

Return the finite threshold, or None when no finite threshold exists.

Implementation of Clone

impl Clone for PenaltyMaximum

clone

fn clone(&self) -> Self

Implementation of Copy

impl Copy for PenaltyMaximum

Implementation of Debug

impl Debug for PenaltyMaximum

fmt

fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Implementation of PartialEq

impl PartialEq for PenaltyMaximum

eq

fn eq(&self, other: &Self) -> bool

Implementation of StructuralPartialEq

impl StructuralPartialEq for PenaltyMaximum

Implementation of Freeze

impl Freeze for PenaltyMaximum

Implementation of RefUnwindSafe

impl RefUnwindSafe for PenaltyMaximum

Implementation of Send

impl Send for PenaltyMaximum

Implementation of Sync

impl Sync for PenaltyMaximum

Implementation of Unpin

impl Unpin for PenaltyMaximum

Implementation of UnsafeUnpin

impl UnsafeUnpin for PenaltyMaximum

Implementation of UnwindSafe

impl UnwindSafe for PenaltyMaximum

Implementation of Any

impl<T> Any for T where T: 'static + ?Sized

Implementation of Boilerplate

impl<T> Boilerplate for T where T: Copy + Send + Sync + Debug + PartialEq + 'static

Implementation of Borrow

impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut

impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef

impl<T> ByRef<T> for T

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of CloneToUninit

impl<T> CloneToUninit for T where T: Clone

Implementation of From

impl<T> From<T> for T

Implementation of Imply

impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into

impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither

impl<T> IntoEither for T

Implementation of Pointable

impl<T> Pointable for T

Implementation of Read

impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same

impl<T> Same for T

Implementation of Scalar

impl<T> Scalar for T where T: 'static + Clone + PartialEq + Debug

Implementation of SupersetOf

impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToOwned

impl<T> ToOwned for T where T: Clone

Implementation of TryFrom

impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto

impl<T, U> TryInto<U> for T where U: TryFrom<T>