pub struct MetadataExplainer<E> { /* private fields */ }Expand description
Adds feature and output metadata to any explainer without changing its algorithm.
Implementations§
Source§impl<E> MetadataExplainer<E>
impl<E> MetadataExplainer<E>
pub fn new(inner: E) -> Self
pub fn with_feature_metadata(self, metadata: FeatureMetadata) -> Result<Self>
pub fn with_output_metadata(self, metadata: OutputMetadata) -> Result<Self>
pub fn inner(&self) -> &E
pub fn into_inner(self) -> E
Trait Implementations§
Source§impl<E: Explainer> Explainer for MetadataExplainer<E>
impl<E: Explainer> Explainer for MetadataExplainer<E>
fn explain(&self, x: ArrayView2<'_, f64>) -> Result<Explanation>
Auto Trait Implementations§
impl<E> Freeze for MetadataExplainer<E>where
E: Freeze,
impl<E> RefUnwindSafe for MetadataExplainer<E>where
E: RefUnwindSafe,
impl<E> Send for MetadataExplainer<E>where
E: Send,
impl<E> Sync for MetadataExplainer<E>where
E: Sync,
impl<E> Unpin for MetadataExplainer<E>where
E: Unpin,
impl<E> UnsafeUnpin for MetadataExplainer<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for MetadataExplainer<E>where
E: 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