Files
smartcore/src/base.rs
2020-12-22 15:41:53 -08:00

11 lines
334 B
Rust

//! # 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>;
}