pub struct Confusion {
pub true_positive: f64,
pub false_positive: f64,
pub true_negative: f64,
pub false_negative: f64,
}Expand description
Weighted counts of a binary model’s predictions at a threshold, from
confusion_matrix.
Fields§
§true_positive: f64§false_positive: f64§true_negative: f64§false_negative: f64Implementations§
Source§impl Confusion
impl Confusion
Sourcepub fn sensitivity(&self) -> f64
pub fn sensitivity(&self) -> f64
TP / (TP + FN).
Sourcepub fn specificity(&self) -> f64
pub fn specificity(&self) -> f64
TN / (TN + FP).
Trait Implementations§
impl Copy for Confusion
impl StructuralPartialEq for Confusion
Auto Trait Implementations§
impl Freeze for Confusion
impl RefUnwindSafe for Confusion
impl Send for Confusion
impl Sync for Confusion
impl Unpin for Confusion
impl UnsafeUnpin for Confusion
impl UnwindSafe for Confusion
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