Shrinkage

shrinkage::Preprocessing

Shrinkage for Rust · rust · 0.3.0

pub struct Preprocessing

Training normalization retained by a fitted model.

Inherent implementation

impl Preprocessing

centering

pub fn centering(&self) -> Centering

The configured centering rule, with automatic choices resolved. A supplied center vector overrides this rule.

centers

pub fn centers(&self) -> Option<&[f64]>

Training-column centers, or None when centering was disabled.

centers_were_supplied

pub fn centers_were_supplied(&self) -> bool

Whether the centers were supplied rather than computed during fitting.

scales

pub fn scales(&self) -> Option<&[f64]>

Training-column scales with zeros replaced by one, or None when disabled.

scales_were_supplied

pub fn scales_were_supplied(&self) -> bool

Whether the scales were supplied rather than computed during fitting.

scaling

pub fn scaling(&self) -> Scaling

The configured scaling rule, with automatic choices resolved. A supplied scale vector overrides this rule.

Implementation of Clone

impl Clone for Preprocessing

clone

fn clone(&self) -> Self

Implementation of Debug

impl Debug for Preprocessing

fmt

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

Implementation of Freeze

impl Freeze for Preprocessing

Implementation of RefUnwindSafe

impl RefUnwindSafe for Preprocessing

Implementation of Send

impl Send for Preprocessing

Implementation of Sync

impl Sync for Preprocessing

Implementation of Unpin

impl Unpin for Preprocessing

Implementation of UnsafeUnpin

impl UnsafeUnpin for Preprocessing

Implementation of UnwindSafe

impl UnwindSafe for Preprocessing

Implementation of Any

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

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 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>