pub struct MeanIoU {
pub threshold: f64,
pub epsilon: f64,
}Expand description
Mean Intersection over Union (mIoU) metric for multi-class segmentation.
Computes IoU for each class separately and returns the mean. This is the standard evaluation metric for semantic segmentation.
Fields§
§threshold: f64Threshold for converting predictions to binary
epsilon: f64Small epsilon to avoid division by zero
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeanIoU
impl RefUnwindSafe for MeanIoU
impl Send for MeanIoU
impl Sync for MeanIoU
impl Unpin for MeanIoU
impl UnwindSafe for MeanIoU
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