pub struct DeepExplainer<M> { /* private fields */ }Expand description
Deep SHAP coordinator for framework adapters implementing multiplier propagation through their native computation graph.
Implementations§
Source§impl<M> DeepExplainer<M>
impl<M> DeepExplainer<M>
pub fn new(model: M, background: Background) -> Self
pub fn with_additivity_check(self, enabled: bool) -> Self
pub fn with_tolerance(self, t: f64) -> Self
Sourcepub fn with_batch_size(self, batch_size: usize) -> Self
pub fn with_batch_size(self, batch_size: usize) -> Self
Limits explained samples submitted to the graph adapter in one call.
Trait Implementations§
Source§impl<M: DeepAttribution> Explainer for DeepExplainer<M>
impl<M: DeepAttribution> Explainer for DeepExplainer<M>
fn explain(&self, x: ArrayView2<'_, f64>) -> Result<Explanation>
Auto Trait Implementations§
impl<M> Freeze for DeepExplainer<M>where
M: Freeze,
impl<M> RefUnwindSafe for DeepExplainer<M>where
M: RefUnwindSafe,
impl<M> Send for DeepExplainer<M>where
M: Send,
impl<M> Sync for DeepExplainer<M>where
M: Sync,
impl<M> Unpin for DeepExplainer<M>where
M: Unpin,
impl<M> UnsafeUnpin for DeepExplainer<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for DeepExplainer<M>where
M: 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