pub enum AttributionMethod {
Saliency,
IntegratedGradients {
baseline: BaselineMethod,
num_steps: usize,
},
GradCAM {
target_layer: String,
},
GuidedBackprop,
DeepLIFT {
baseline: BaselineMethod,
},
SHAP {
background_samples: usize,
num_samples: usize,
},
LayerWiseRelevancePropagation {
rule: LRPRule,
epsilon: f64,
},
SmoothGrad {
base_method: Box<AttributionMethod>,
num_samples: usize,
noise_std: f64,
},
InputXGradient,
ExpectedGradients {
num_references: usize,
num_steps: usize,
},
}
Expand description
Attribution method for computing feature importance
Variants§
Saliency
Simple gradient-based saliency
IntegratedGradients
Integrated gradients
Fields
§
baseline: BaselineMethod
Baseline method for integration
GradCAM
Grad-CAM (Gradient-weighted Class Activation Mapping)
GuidedBackprop
Guided backpropagation
DeepLIFT
DeepLIFT
Fields
§
baseline: BaselineMethod
Baseline method for DeepLIFT
SHAP
SHAP (SHapley Additive exPlanations)
Fields
LayerWiseRelevancePropagation
Layer-wise Relevance Propagation
SmoothGrad
SmoothGrad
Fields
§
base_method: Box<AttributionMethod>
Base attribution method to smooth
InputXGradient
Input x Gradient
ExpectedGradients
Expected Gradients
Trait Implementations§
Source§impl Clone for AttributionMethod
impl Clone for AttributionMethod
Source§fn clone(&self) -> AttributionMethod
fn clone(&self) -> AttributionMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AttributionMethod
impl Debug for AttributionMethod
Source§impl PartialEq for AttributionMethod
impl PartialEq for AttributionMethod
impl StructuralPartialEq for AttributionMethod
Auto Trait Implementations§
impl Freeze for AttributionMethod
impl RefUnwindSafe for AttributionMethod
impl Send for AttributionMethod
impl Sync for AttributionMethod
impl Unpin for AttributionMethod
impl UnwindSafe for AttributionMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more