pub trait InterpretableModel<X, Y, Output>:
SupervisedLearner<X, Y, Output>
+ FeatureImportance
+ ModelIntrospection{
// Provided method
fn explain_prediction(&self, x: &[f64]) -> Result<PredictionExplanation> { ... }
}Expand description
Composite trait for interpretable models
Provided Methods§
Sourcefn explain_prediction(&self, x: &[f64]) -> Result<PredictionExplanation>
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.