functional.forecasting_model()
Build a NumPyro model from a functional model body.
Usage
functional.forecasting_model(model_fn)The functional analogue of subclassing ~numpyro_forecast.forecaster.ForecastingModel. model_fn is a pure function (Horizon, covariates) -> None that calls time_series() and predict(); this wraps it into the standard NumPyro model callable (covariates, data=None), deriving the Horizon from the shapes.
Parameters
Returns
ForecastModel-
A callable
(covariates, data=None) -> Noneusable withSVI,MCMC,Predictive, fit_svi(), fit_mcmc(), and the OOP forecaster classes.