pub struct NestedCvResults<P> {
pub outer_scores: Vec<f64>,
pub selected_params: Vec<P>,
}Expand description
Output of nested_cross_validate.
The headline number is mean_score over the
outer folds — the non-leaked estimate that nested CV exists to produce. The
per-fold selected_params are a diagnostic: wildly different selections
across outer folds signal an unstable model/data pairing, worth surfacing
rather than discarding.
Fields§
§outer_scores: Vec<f64>Outer-fold test scores — the honest performance estimate.
selected_params: Vec<P>Hyperparameters selected by the inner loop on each outer fold.
Implementations§
Source§impl<P> NestedCvResults<P>
impl<P> NestedCvResults<P>
Trait Implementations§
Source§impl<P: Clone> Clone for NestedCvResults<P>
impl<P: Clone> Clone for NestedCvResults<P>
Source§fn clone(&self) -> NestedCvResults<P>
fn clone(&self) -> NestedCvResults<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<P> Freeze for NestedCvResults<P>
impl<P> RefUnwindSafe for NestedCvResults<P>where
P: RefUnwindSafe,
impl<P> Send for NestedCvResults<P>where
P: Send,
impl<P> Sync for NestedCvResults<P>where
P: Sync,
impl<P> Unpin for NestedCvResults<P>where
P: Unpin,
impl<P> UnsafeUnpin for NestedCvResults<P>
impl<P> UnwindSafe for NestedCvResults<P>where
P: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more