pub struct DiceCoefficient {
pub threshold: f64,
pub epsilon: f64,
}Expand description
Dice Coefficient metric (F1 Score variant for segmentation).
Dice = 2 * (Intersection) / (|A| + |B|) = 2TP / (2TP + FP + FN)
Often used in medical image segmentation. Range: [0, 1] where 1 is perfect overlap.
Fields§
§threshold: f64Threshold for converting predictions to binary
epsilon: f64Small epsilon to avoid division by zero
Trait Implementations§
Source§impl Clone for DiceCoefficient
impl Clone for DiceCoefficient
Source§fn clone(&self) -> DiceCoefficient
fn clone(&self) -> DiceCoefficient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiceCoefficient
impl Debug for DiceCoefficient
Source§impl Default for DiceCoefficient
impl Default for DiceCoefficient
Auto Trait Implementations§
impl Freeze for DiceCoefficient
impl RefUnwindSafe for DiceCoefficient
impl Send for DiceCoefficient
impl Sync for DiceCoefficient
impl Unpin for DiceCoefficient
impl UnwindSafe for DiceCoefficient
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