pub struct TunedThresholdClassifierCV<E, C> { /* private fields */ }Expand description
Tuned threshold classifier with cross-validation
Automatically finds the optimal decision threshold by maximizing a specified metric through cross-validation on the training data.
Implementations§
Source§impl<E, C> TunedThresholdClassifierCV<E, C>
impl<E, C> TunedThresholdClassifierCV<E, C>
Sourcepub fn scoring(self, metric: OptimizationMetric) -> Self
pub fn scoring(self, metric: OptimizationMetric) -> Self
Set the metric to optimize
Sourcepub fn n_thresholds(self, n: usize) -> Self
pub fn n_thresholds(self, n: usize) -> Self
Set the number of thresholds to try
Sourcepub fn threshold_range(self, min: f64, max: f64) -> Self
pub fn threshold_range(self, min: f64, max: f64) -> Self
Set the threshold range
Trait Implementations§
Auto Trait Implementations§
impl<E, C> Freeze for TunedThresholdClassifierCV<E, C>
impl<E, C> RefUnwindSafe for TunedThresholdClassifierCV<E, C>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<E, C> Send for TunedThresholdClassifierCV<E, C>
impl<E, C> Sync for TunedThresholdClassifierCV<E, C>
impl<E, C> Unpin for TunedThresholdClassifierCV<E, C>
impl<E, C> UnwindSafe for TunedThresholdClassifierCV<E, C>where
E: UnwindSafe,
C: 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
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