pub struct Comparison { /* private fields */ }Expand description
The scores from compare: every candidate on every metric and split.
Implementations§
Source§impl Comparison
impl Comparison
Sourcepub fn split_scores(&self, model: usize, metric: usize) -> &[f64]
pub fn split_scores(&self, model: usize, metric: usize) -> &[f64]
Sourcepub fn std_error(&self, model: usize, metric: usize) -> f64
pub fn std_error(&self, model: usize, metric: usize) -> f64
Standard error of mean: the splits’ standard
deviation over √k (NaN with one split), as cv.glmnet and tidymodels
report it.
Sourcepub fn difference_std_error(&self, model: usize, metric: usize) -> f64
pub fn difference_std_error(&self, model: usize, metric: usize) -> f64
Standard error of each candidate’s per-split difference from the
best on metric (0 for the best itself). Splits are shared, so the
paired difference is far less noisy than either mean: a candidate
within about two of these of the best is not clearly worse.
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§impl Debug for Comparison
impl Debug for Comparison
Source§impl PartialEq for Comparison
impl PartialEq for Comparison
impl StructuralPartialEq for Comparison
Auto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnsafeUnpin for Comparison
impl UnwindSafe for Comparison
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