ParallelCrossValidation

Trait ParallelCrossValidation 

Source
pub trait ParallelCrossValidation<X, Y> {
    type Score: FloatBounds;

    // Required method
    fn cross_validate_parallel(
        &self,
        model: impl Fit<X, Y> + Clone + Send + Sync,
        x: &X,
        y: &Y,
        cv_folds: usize,
    ) -> Result<Vec<Self::Score>>
       where X: Clone + Send + Sync,
             Y: Clone + Send + Sync,
             <Self as ParallelCrossValidation<X, Y>>::Score: Send;
}
Expand description

Trait for parallel cross-validation

Required Associated Types§

Required Methods§

Source

fn cross_validate_parallel( &self, model: impl Fit<X, Y> + Clone + Send + Sync, x: &X, y: &Y, cv_folds: usize, ) -> Result<Vec<Self::Score>>
where X: Clone + Send + Sync, Y: Clone + Send + Sync, <Self as ParallelCrossValidation<X, Y>>::Score: Send,

Perform k-fold cross-validation 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§