pub struct GroupMetrics {
pub name: String,
pub count: usize,
pub positive_rate: f32,
pub true_positive_rate: f32,
pub false_positive_rate: f32,
pub accuracy: f32,
}Expand description
Metrics for a specific demographic group
Fields§
§name: StringGroup name (e.g., “male”, “female”)
count: usizeSample size
positive_rate: f32Positive prediction rate
true_positive_rate: f32True positive rate (recall)
false_positive_rate: f32False positive rate
accuracy: f32Accuracy for this group
Implementations§
Trait Implementations§
Source§impl Clone for GroupMetrics
impl Clone for GroupMetrics
Source§fn clone(&self) -> GroupMetrics
fn clone(&self) -> GroupMetrics
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 moreAuto Trait Implementations§
impl Freeze for GroupMetrics
impl RefUnwindSafe for GroupMetrics
impl Send for GroupMetrics
impl Sync for GroupMetrics
impl Unpin for GroupMetrics
impl UnwindSafe for GroupMetrics
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