Shrinkage

shrinkage::FoldPath

Shrinkage for Rust · rust · 0.3.0

pub struct FoldPath<F, P>

One training-fold path and its held-out losses in candidate order.

Inherent implementation

impl<F, P> FoldPath<F, P>

path

pub fn path(&self) -> &PathFit<F, P>

Fits, training preprocessing, complete penalties, and path diagnostics.

scores

pub fn scores(&self) -> &[f64]

Losses averaged within this fold, excluding all penalty terms.

validation_rows

pub fn validation_rows(&self) -> &[usize]

Original observation indices held out for this fold, in increasing order.

Implementation of Clone

impl<F: core::clone::Clone, P: core::clone::Clone> Clone for FoldPath<F, P>

clone

fn clone(&self) -> Self

Implementation of Debug

impl<F: core::fmt::Debug, P: core::fmt::Debug> Debug for FoldPath<F, P>

fmt

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

Implementation of Freeze

impl<F, P> Freeze for FoldPath<F, P> where PathFit<F, P>: Freeze

Implementation of RefUnwindSafe

impl<F, P> RefUnwindSafe for FoldPath<F, P> where PathFit<F, P>: RefUnwindSafe

Implementation of Send

impl<F, P> Send for FoldPath<F, P> where PathFit<F, P>: Send

Implementation of Sync

impl<F, P> Sync for FoldPath<F, P> where PathFit<F, P>: Sync

Implementation of Unpin

impl<F, P> Unpin for FoldPath<F, P> where PathFit<F, P>: Unpin

Implementation of UnsafeUnpin

impl<F, P> UnsafeUnpin for FoldPath<F, P> where PathFit<F, P>: UnsafeUnpin

Implementation of UnwindSafe

impl<F, P> UnwindSafe for FoldPath<F, P> where PathFit<F, P>: UnwindSafe

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>