pub struct LIMEExplainer<F: Float + Debug> {
pub num_perturbations: usize,
pub neighborhood_size: f64,
pub regularization_strength: f64,
pub random_seed: u64,
pub cached_perturbations: HashMap<String, Vec<ArrayD<F>>>,
}
Expand description
LIME (Local Interpretable Model-agnostic Explanations) explainer
Fields§
§num_perturbations: usize
Number of perturbations to generate
neighborhood_size: f64
Size of local neighborhood
regularization_strength: f64
Regularization strength for sparse explanations
random_seed: u64
Random seed for reproducibility
cached_perturbations: HashMap<String, Vec<ArrayD<F>>>
Cached perturbations for efficiency
Implementations§
Source§impl<F> LIMEExplainer<F>
impl<F> LIMEExplainer<F>
Sourcepub fn new(
num_perturbations: usize,
neighborhood_size: f64,
regularization_strength: f64,
random_seed: u64,
) -> Self
pub fn new( num_perturbations: usize, neighborhood_size: f64, regularization_strength: f64, random_seed: u64, ) -> Self
Create a new LIME explainer
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for LIMEExplainer<F>
impl<F> RefUnwindSafe for LIMEExplainer<F>where
F: RefUnwindSafe,
impl<F> Send for LIMEExplainer<F>where
F: Send,
impl<F> Sync for LIMEExplainer<F>where
F: Sync,
impl<F> Unpin for LIMEExplainer<F>
impl<F> UnwindSafe for LIMEExplainer<F>where
F: RefUnwindSafe,
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