Skip to main content

MLForecast

Forecasting pipeline Parameters:

MLForecast.fit

Apply the feature engineering and train the models. Parameters: Returns:

MLForecast.save

Save forecast object Parameters:

MLForecast.load

Load forecast object Parameters:

MLForecast.update

Update the values of the stored series. Parameters:

MLForecast.make_future_dataframe

Create a dataframe with all ids and future times in the forecasting horizon. Parameters: Returns:

MLForecast.get_missing_future

Get the missing id and time combinations in X_df. Parameters: Returns:

MLForecast.predict

Compute the predictions for the next h steps. Parameters: Returns:

MLForecast.preprocess

Add the features to data. Parameters: Returns:

MLForecast.fit_models

Manually train models. Use this if you called MLForecast.preprocess beforehand. Parameters: Returns:

MLForecast.cross_validation

Perform time series cross validation. Creates n_windows splits where each window has h test periods, trains the models, computes the predictions and merges the actuals. Parameters: Returns:

MLForecast.from_cv