augurs_core

Trait Fit

source
pub trait Fit {
    type Fitted: Predict;
    type Error: ModelError;

    // Required method
    fn fit(&self, y: &[f64]) -> Result<Self::Fitted, Self::Error>;
}
Expand description

A new, unfitted time series forecasting model.

Required Associated Types§

source

type Fitted: Predict

The type of the fitted model produced by the fit method.

source

type Error: ModelError

The type of error returned when fitting the model.

Required Methods§

source

fn fit(&self, y: &[f64]) -> Result<Self::Fitted, Self::Error>

Fit the model to the training data.

Implementations on Foreign Types§

source§

impl<F> Fit for Box<F>
where F: Fit,

source§

type Fitted = <F as Fit>::Fitted

source§

type Error = <F as Fit>::Error

source§

fn fit(&self, y: &[f64]) -> Result<Self::Fitted, Self::Error>

Implementors§