ParallelEnsemble

Trait ParallelEnsemble 

Source
pub trait ParallelEnsemble<X, Y, Output> {
    // Required methods
    fn fit_ensemble_parallel(
        models: Vec<impl Fit<X, Y> + Clone + Send + Sync>,
        x: &X,
        y: &Y,
    ) -> Result<Vec<Box<dyn Predict<X, Output>>>>
       where X: Clone + Send + Sync,
             Y: Clone + Send + Sync;
    fn predict_ensemble_parallel(
        models: &[impl Predict<X, Output> + Sync],
        x: &X,
    ) -> Result<Vec<Output>>
       where X: Sync,
             Output: Send;
}
Expand description

Trait for parallel ensemble operations

Required Methods§

Source

fn fit_ensemble_parallel( models: Vec<impl Fit<X, Y> + Clone + Send + Sync>, x: &X, y: &Y, ) -> Result<Vec<Box<dyn Predict<X, Output>>>>
where X: Clone + Send + Sync, Y: Clone + Send + Sync,

Train ensemble models in parallel

Source

fn predict_ensemble_parallel( models: &[impl Predict<X, Output> + Sync], x: &X, ) -> Result<Vec<Output>>
where X: Sync, Output: Send,

Make ensemble predictions in parallel

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§