1. Learn
  2. /
  3. Courses
  4. /
  5. Designing Forecasting Pipelines for Production

Connected

Exercise

Fitting the model

Now that your model and parameters are ready, you'll initialize MLForecast and fit it to the time series data.

The model and params variables from the previous exercise are available, along with the ts DataFrame.

Instructions

100 XP
  • Create an MLForecast instance named mlf.
  • Set the freq, lags, and date_features arguments using the respective keys from the params dictionary.
  • Fit the model to the ts DataFrame.