pub struct Attribution {
pub mode: AttributionMode,
pub origin_step: Option<usize>,
pub propagation: Vec<usize>,
pub counterfactual: Option<Counterfactual>,
pub cause_label: Option<String>,
pub confidence: f64,
}Expand description
Where the regression is attributed and how far it propagated.
Fields§
§mode: AttributionMode§origin_step: Option<usize>The step the regression originated at, if localized.
propagation: Vec<usize>Steps the error propagated through, in order.
counterfactual: Option<Counterfactual>Counterfactual evidence, present only in AttributionMode::Counterfactual.
cause_label: Option<String>Optional human-readable cause name from the judge. Semantic naming only — never localization.
confidence: f64Confidence in the attribution, in [0, 1].
Trait Implementations§
Source§impl Clone for Attribution
impl Clone for Attribution
Source§fn clone(&self) -> Attribution
fn clone(&self) -> Attribution
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 Attribution
impl Debug for Attribution
Source§impl<'de> Deserialize<'de> for Attribution
impl<'de> Deserialize<'de> for Attribution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Attribution
impl PartialEq for Attribution
Source§impl Serialize for Attribution
impl Serialize for Attribution
impl StructuralPartialEq for Attribution
Auto Trait Implementations§
impl Freeze for Attribution
impl RefUnwindSafe for Attribution
impl Send for Attribution
impl Sync for Attribution
impl Unpin for Attribution
impl UnsafeUnpin for Attribution
impl UnwindSafe for Attribution
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