pub struct PartitionExplainer<M, K = IndependentMasker> { /* private fields */ }Expand description
Exact Owen values for a partition of the input features. This preserves group boundaries while allocating each group’s contribution among members.
Implementations§
Source§impl<M> PartitionExplainer<M, IndependentMasker>
impl<M> PartitionExplainer<M, IndependentMasker>
pub fn new( model: M, background: Background, partition: FeaturePartition, ) -> Self
Source§impl<M, K> PartitionExplainer<M, K>
impl<M, K> PartitionExplainer<M, K>
pub fn from_masker(model: M, masker: K, partition: FeaturePartition) -> Self
pub fn with_max_features(self, n: usize) -> Self
pub fn with_evaluation_config(self, c: EvaluationConfig) -> Self
pub fn with_link(self, link: Link) -> Self
Trait Implementations§
Source§impl<M: Predict, K: Masker> Explainer for PartitionExplainer<M, K>
impl<M: Predict, K: Masker> Explainer for PartitionExplainer<M, K>
fn explain(&self, x: ArrayView2<'_, f64>) -> Result<Explanation>
Auto Trait Implementations§
impl<M, K> Freeze for PartitionExplainer<M, K>
impl<M, K> RefUnwindSafe for PartitionExplainer<M, K>where
M: RefUnwindSafe,
K: RefUnwindSafe,
impl<M, K> Send for PartitionExplainer<M, K>
impl<M, K> Sync for PartitionExplainer<M, K>
impl<M, K> Unpin for PartitionExplainer<M, K>
impl<M, K> UnsafeUnpin for PartitionExplainer<M, K>where
M: UnsafeUnpin,
K: UnsafeUnpin,
impl<M, K> UnwindSafe for PartitionExplainer<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