Skip to content

Make StatsForecastModel accept model as string or class with model_kwargs. #3055

@dennisbader

Description

@dennisbader

Similar to how we implemented it for NeuralForecastModel (see here), we should adapt how to pass the model and model_kwargs to StatsForecastModel.

Currently it expects model to be an instance of a statsforecast model. This can be tedious if for example we want to define which models and parameters to use via config files, or that in general we have to import all the models from statsforecast.

Instead, we can leverage the NeuralForecast logic, that allows passing model as a string (or class) and parameters as model_kwargs.

Either we directly enforce this new behavior (a breaking change) or we will deprecate the old behavior in a future release (e.g. deprecation warning for now if model is an instance of a statsforecast model).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions