BaseEstimator

Trait BaseEstimator 

Source
pub trait BaseEstimator: Send + Sync {
    // Required methods
    fn fit(&mut self, x: &Tensor, y: &Tensor);
    fn predict(&self, x: &Tensor) -> Tensor;
    fn clone_box(&self) -> Box<dyn BaseEstimator>;
}
Expand description

Base estimator trait for stacking

Required Methods§

Source

fn fit(&mut self, x: &Tensor, y: &Tensor)

Source

fn predict(&self, x: &Tensor) -> Tensor

Source

fn clone_box(&self) -> Box<dyn BaseEstimator>

Implementors§