pub struct DisparateImpact {
pub reference_rate: f64,
pub comparison_rate: f64,
pub ratio: f64,
pub passes_four_fifths: bool,
}Expand description
Disparate-impact summary for two binary-outcome groups.
Fields§
§reference_rate: f64Selection rate of the reference group.
comparison_rate: f64Selection rate of the comparison group.
ratio: f64Comparison rate divided by reference rate.
passes_four_fifths: boolWhether the ratio meets the four-fifths (0.8) threshold.
Trait Implementations§
Source§impl Clone for DisparateImpact
impl Clone for DisparateImpact
Source§fn clone(&self) -> DisparateImpact
fn clone(&self) -> DisparateImpact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DisparateImpact
Source§impl Debug for DisparateImpact
impl Debug for DisparateImpact
Source§impl PartialEq for DisparateImpact
impl PartialEq for DisparateImpact
impl StructuralPartialEq for DisparateImpact
Auto Trait Implementations§
impl Freeze for DisparateImpact
impl RefUnwindSafe for DisparateImpact
impl Send for DisparateImpact
impl Sync for DisparateImpact
impl Unpin for DisparateImpact
impl UnsafeUnpin for DisparateImpact
impl UnwindSafe for DisparateImpact
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