feat: + cross_validate, trait Predictor, refactoring

This commit is contained in:
Volodymyr Orlov
2020-12-22 15:41:53 -08:00
parent 40dfca702e
commit a2be9e117f
34 changed files with 977 additions and 369 deletions
+10
View File
@@ -0,0 +1,10 @@
//! # Common Interfaces and methods
//!
//! This module consolidates interfaces and uniform basic API that is used elsewhere in the code.
use crate::error::Failed;
/// Implements method predict that offers a way to estimate target value from new data
pub trait Predictor<X, Y> {
fn predict(&self, x: &X) -> Result<Y, Failed>;
}