pub struct Counterfactual {
pub source_id: String,
pub counterfactual_id: String,
pub desired_selected: bool,
pub distance: f64,
pub changes: Vec<CounterfactualChange>,
}Expand description
Minimal-change counterfactual found in a deterministic synthetic table.
Fields§
§source_id: StringId of the source record.
counterfactual_id: StringId of the nearest desired-outcome record.
desired_selected: boolOutcome the counterfactual achieves.
distance: f64Summed distance between the records.
changes: Vec<CounterfactualChange>Per-feature changes from source to counterfactual.
Implementations§
Trait Implementations§
Source§impl Clone for Counterfactual
impl Clone for Counterfactual
Source§fn clone(&self) -> Counterfactual
fn clone(&self) -> Counterfactual
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 moreSource§impl Debug for Counterfactual
impl Debug for Counterfactual
Source§impl PartialEq for Counterfactual
impl PartialEq for Counterfactual
Source§fn eq(&self, other: &Counterfactual) -> bool
fn eq(&self, other: &Counterfactual) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Counterfactual
Auto Trait Implementations§
impl Freeze for Counterfactual
impl RefUnwindSafe for Counterfactual
impl Send for Counterfactual
impl Sync for Counterfactual
impl Unpin for Counterfactual
impl UnsafeUnpin for Counterfactual
impl UnwindSafe for Counterfactual
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