pub struct HierarchicalPartitionExplainer<M, K = IndependentMasker> { /* private fields */ }Expand description
Exact hierarchical Owen values for a binary feature partition tree.
Implementations§
Source§impl<M> HierarchicalPartitionExplainer<M, IndependentMasker>
impl<M> HierarchicalPartitionExplainer<M, IndependentMasker>
pub fn new(model: M, background: Background, tree: PartitionTree) -> Self
Source§impl<M, K> HierarchicalPartitionExplainer<M, K>
impl<M, K> HierarchicalPartitionExplainer<M, K>
pub fn from_masker(model: M, masker: K, tree: PartitionTree) -> Self
pub fn with_max_permutations(self, n: usize) -> Self
Sourcepub fn with_approximate_samples(self, samples: usize, seed: u64) -> Self
pub fn with_approximate_samples(self, samples: usize, seed: u64) -> Self
Enables deterministic Monte Carlo hierarchy-consistent permutations
when exact enumeration exceeds max_permutations.
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 HierarchicalPartitionExplainer<M, K>
impl<M: Predict, K: Masker> Explainer for HierarchicalPartitionExplainer<M, K>
fn explain(&self, x: ArrayView2<'_, f64>) -> Result<Explanation>
Auto Trait Implementations§
impl<M, K> Freeze for HierarchicalPartitionExplainer<M, K>
impl<M, K> RefUnwindSafe for HierarchicalPartitionExplainer<M, K>where
M: RefUnwindSafe,
K: RefUnwindSafe,
impl<M, K> Send for HierarchicalPartitionExplainer<M, K>
impl<M, K> Sync for HierarchicalPartitionExplainer<M, K>
impl<M, K> Unpin for HierarchicalPartitionExplainer<M, K>
impl<M, K> UnsafeUnpin for HierarchicalPartitionExplainer<M, K>where
M: UnsafeUnpin,
K: UnsafeUnpin,
impl<M, K> UnwindSafe for HierarchicalPartitionExplainer<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