InterpretableModel

Trait InterpretableModel 

Source
pub trait InterpretableModel<X, Y, Output>:
    SupervisedLearner<X, Y, Output>
    + FeatureImportance
    + ModelIntrospection
where Self::Fitted: Predict<X, Output> + FeatureImportance + ModelIntrospection,
{ // Provided method fn explain_prediction(&self, x: &[f64]) -> Result<PredictionExplanation> { ... } }
Expand description

Composite trait for interpretable models

Provided Methods§

Source

fn explain_prediction(&self, x: &[f64]) -> Result<PredictionExplanation>

Generate model explanation for specific prediction

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§