PyMCForecastAdapter.predict#
- PyMCForecastAdapter.predict(X, *, coords=None, out_of_sample=False, group='posterior')[source]#
Predict in-sample or forecast the counterfactual.
- Parameters:
X (
Any) – Design matrix for which to generate predictions.coords (
dict[str,Any] |None) – Coordinate metadata accepted by the forecasting backend but not used by its forecasting implementation.out_of_sample (
bool) –Truedraws the post-period counterfactual via the model’s forecasting path.group (
Literal['prior','posterior']) – Only posterior draws exist on this backend; requesting"prior"raises the group-not-sampled error namingsample_prior_predictive().
- Returns:
Posterior draws of
muwith canonical prediction dimensions.- Return type:
xr.DataArray