memory_efficient_cross_validate

Function memory_efficient_cross_validate 

Source
pub fn memory_efficient_cross_validate<T, L, F, R>(
    data: Vec<T>,
    labels: Vec<L>,
    n_folds: usize,
    train_func: F,
    config: Option<MemoryEfficientConfig>,
) -> Result<StreamingEvaluationResult<R>, MemoryError>
where T: Clone + Send + Sync, L: Clone + Send + Sync, F: Fn(&[T], &[L]) -> Result<R, MemoryError>, R: Clone + Default,
Expand description

Convenience function for memory-efficient cross-validation