pub struct BinaryClassificationMetrics { /* private fields */ }
Expand description
BinaryClassificationMetrics
computes common metrics used to evaluate binary classifiers at a number of classification thresholds.
Implementations§
Source§impl BinaryClassificationMetrics
impl BinaryClassificationMetrics
Sourcepub fn new(n_thresholds: usize) -> BinaryClassificationMetrics
pub fn new(n_thresholds: usize) -> BinaryClassificationMetrics
Create a new BinaryClassificationMetrics
with the specified number of thresholds. The thresholds will be centered at 0.5 and evenly spaced between 0 and 1 such that 0 and 1 will never be threshold values.
pub fn update(&mut self, input: BinaryClassificationMetricsInput<'_>)
pub fn merge(&mut self, other: BinaryClassificationMetrics)
pub fn finalize(self) -> BinaryClassificationMetricsOutput
Auto Trait Implementations§
impl Freeze for BinaryClassificationMetrics
impl RefUnwindSafe for BinaryClassificationMetrics
impl Send for BinaryClassificationMetrics
impl Sync for BinaryClassificationMetrics
impl Unpin for BinaryClassificationMetrics
impl UnwindSafe for BinaryClassificationMetrics
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