pub struct CounterfactualChange {
pub feature: String,
pub from: Option<f64>,
pub to: Option<f64>,
pub delta: f64,
}Expand description
One feature delta in a counterfactual explanation.
Fields§
§feature: StringName of the changed feature.
from: Option<f64>Source value, when the feature was present.
to: Option<f64>Counterfactual value, when the feature is present.
delta: f64Magnitude of the change contributing to the distance.
Trait Implementations§
Source§impl Clone for CounterfactualChange
impl Clone for CounterfactualChange
Source§fn clone(&self) -> CounterfactualChange
fn clone(&self) -> CounterfactualChange
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 CounterfactualChange
impl Debug for CounterfactualChange
Source§impl PartialEq for CounterfactualChange
impl PartialEq for CounterfactualChange
Source§fn eq(&self, other: &CounterfactualChange) -> bool
fn eq(&self, other: &CounterfactualChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CounterfactualChange
Auto Trait Implementations§
impl Freeze for CounterfactualChange
impl RefUnwindSafe for CounterfactualChange
impl Send for CounterfactualChange
impl Sync for CounterfactualChange
impl Unpin for CounterfactualChange
impl UnsafeUnpin for CounterfactualChange
impl UnwindSafe for CounterfactualChange
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