pub struct ExactExplainer<M, K = IndependentMasker> { /* private fields */ }Expand description
Exact interventional Shapley values. Intended for at most ~20 features.
Implementations§
Source§impl<M> ExactExplainer<M, IndependentMasker>
impl<M> ExactExplainer<M, IndependentMasker>
pub fn new(model: M, background: Background) -> Self
Source§impl<M, K> ExactExplainer<M, K>
impl<M, K> ExactExplainer<M, K>
pub fn from_masker(model: M, masker: K) -> Self
pub fn with_max_features(self, n: usize) -> Self
pub fn with_evaluation_config(self, config: EvaluationConfig) -> Self
pub fn with_link(self, link: Link) -> Self
Trait Implementations§
Source§impl<M: Predict, K: Masker> Explainer for ExactExplainer<M, K>
impl<M: Predict, K: Masker> Explainer for ExactExplainer<M, K>
fn explain(&self, x: ArrayView2<'_, f64>) -> Result<Explanation>
Auto Trait Implementations§
impl<M, K> Freeze for ExactExplainer<M, K>
impl<M, K> RefUnwindSafe for ExactExplainer<M, K>where
M: RefUnwindSafe,
K: RefUnwindSafe,
impl<M, K> Send for ExactExplainer<M, K>
impl<M, K> Sync for ExactExplainer<M, K>
impl<M, K> Unpin for ExactExplainer<M, K>
impl<M, K> UnsafeUnpin for ExactExplainer<M, K>where
M: UnsafeUnpin,
K: UnsafeUnpin,
impl<M, K> UnwindSafe for ExactExplainer<M, K>where
M: UnwindSafe,
K: UnwindSafe,
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