pub trait Classifier {
// Required methods
fn id(&self, feature: &str) -> Option<u32>;
fn score(&self, features: &[u32]) -> f64;
}Expand description
Scores the features of a decision: a source depends on a target when the score is above 0.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".