Skip to main content

ClassificationPredictor

Trait ClassificationPredictor 

Source
pub trait ClassificationPredictor {
    // Required method
    fn predict_proba(&self, x: &[Vec<f64>]) -> Vec<f64>;
}
Expand description

A fitted classifier, as seen by ClassificationModelFingerprint.

Required Methods§

Source

fn predict_proba(&self, x: &[Vec<f64>]) -> Vec<f64>

Predicts one probability per row of x (typically of the positive class).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§