pub trait DecisionPath:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn explain(&self) -> String;
fn feature_contributions(&self) -> &[f32];
fn confidence(&self) -> f32;
fn to_bytes(&self) -> Vec<u8> ⓘ;
fn from_bytes(bytes: &[u8]) -> Result<Self, PathError>
where Self: Sized;
}Expand description
Common interface for all decision paths
Required Methods§
Sourcefn feature_contributions(&self) -> &[f32]
fn feature_contributions(&self) -> &[f32]
Feature importance scores (contribution of each feature)
Sourcefn confidence(&self) -> f32
fn confidence(&self) -> f32
Confidence in this decision (0.0 - 1.0)
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.