Skip to main content

Regressor

Trait Regressor 

Source
pub trait Regressor {
    // Required methods
    fn fit(&mut self, x: VR2D<'_>, y: VR1D<'_>) -> Result<(), ErrorsJSL>;
    fn predict(&self, x: VR2D<'_>) -> Result<R1D, ErrorsJSL>;
}
Expand description

A model mapping feature rows to real-valued predictions.

Required Methods§

Source

fn fit(&mut self, x: VR2D<'_>, y: VR1D<'_>) -> Result<(), ErrorsJSL>

Source

fn predict(&self, x: VR2D<'_>) -> Result<R1D, ErrorsJSL>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§