pub struct FeatureAttribution {
pub tokens: Vec<String>,
pub attributions: Vec<f32>,
pub gradients: Vec<f32>,
pub integrated_gradients: Vec<f32>,
pub lrp_scores: Vec<f32>,
}Expand description
Feature attribution for a decision
Fields§
§tokens: Vec<String>Input tokens
attributions: Vec<f32>Attribution scores per token
gradients: Vec<f32>Gradient-based importance
integrated_gradients: Vec<f32>Integrated gradients
lrp_scores: Vec<f32>Layer-wise relevance propagation scores
Trait Implementations§
Source§impl Clone for FeatureAttribution
impl Clone for FeatureAttribution
Source§fn clone(&self) -> FeatureAttribution
fn clone(&self) -> FeatureAttribution
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 FeatureAttribution
impl RefUnwindSafe for FeatureAttribution
impl Send for FeatureAttribution
impl Sync for FeatureAttribution
impl Unpin for FeatureAttribution
impl UnwindSafe for FeatureAttribution
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