pub enum Scoring {
EstimatorScore,
Metric(String),
Scorer(Scorer),
MultiMetric(Vec<String>),
Custom(fn(&Array1<Float>, &Array1<Float>) -> Result<f64>),
}Expand description
Scoring method for cross-validation
Variants§
EstimatorScore
Use the estimator’s built-in score method
Metric(String)
Use a predefined scorer by name
Scorer(Scorer)
Use a specific scorer configuration
MultiMetric(Vec<String>)
Use multiple scoring metrics
Custom(fn(&Array1<Float>, &Array1<Float>) -> Result<f64>)
Use a custom scoring function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scoring
impl RefUnwindSafe for Scoring
impl Send for Scoring
impl Sync for Scoring
impl Unpin for Scoring
impl UnwindSafe for Scoring
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> 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