pub struct CVModelSelector { /* private fields */ }Expand description
Cross-validation model selector
Implementations§
Source§impl CVModelSelector
impl CVModelSelector
Sourcepub fn with_config(config: CVModelSelectionConfig) -> Self
pub fn with_config(config: CVModelSelectionConfig) -> Self
Create a new CV model selector with custom configuration
Sourcepub fn criteria(self, criteria: ModelSelectionCriteria) -> Self
pub fn criteria(self, criteria: ModelSelectionCriteria) -> Self
Set selection criteria
Sourcepub fn statistical_tests(self, enable: bool) -> Self
pub fn statistical_tests(self, enable: bool) -> Self
Enable or disable statistical tests
Sourcepub fn significance_level(self, level: f64) -> Self
pub fn significance_level(self, level: f64) -> Self
Set significance level
Sourcepub fn random_seed(self, seed: u64) -> Self
pub fn random_seed(self, seed: u64) -> Self
Set random seed
Sourcepub fn select_model<E, X, Y>(
&self,
models: &[(E, String)],
x: &[X],
_y: &[Y],
cv: &dyn CrossValidator,
scoring: &dyn Scoring,
) -> Result<CVModelSelectionResult>
pub fn select_model<E, X, Y>( &self, models: &[(E, String)], x: &[X], _y: &[Y], cv: &dyn CrossValidator, scoring: &dyn Scoring, ) -> Result<CVModelSelectionResult>
Select best model from candidates using cross-validation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CVModelSelector
impl RefUnwindSafe for CVModelSelector
impl Send for CVModelSelector
impl Sync for CVModelSelector
impl Unpin for CVModelSelector
impl UnwindSafe for CVModelSelector
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
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