MMMCVPlotSuite.predictions#
- MMMCVPlotSuite.predictions(cv_data=None, dims=None, hdi_prob=0.94, figsize=None, backend=None, return_as_pc=False, hdi_kwargs=None, **pc_kwargs)[source]#
Posterior predictive HDI bands per CV fold.
For each fold: blue HDI band over train dates, orange HDI band over test dates, black observed line, and a green dashed vertical boundary at the train/test split.
- Parameters:
- cv_data
az.InferenceDataorNone Override the stored
self.cv_datafor this call only._validate_cv_resultsis re-run on the override.- dims
dictorNone Filter coordinate values before rendering (e.g.
{"geo": ["North"]}).- hdi_prob
float HDI probability mass (default 0.94).
- figsize
tupleorNone Figure size in inches; injected into
figure_kwargs.- backend
strorNone PlotCollection backend (
"matplotlib"/"plotly"/"bokeh"). Non-matplotlib requiresreturn_as_pc=True.- return_as_pcbool
Return the raw
PlotCollectioninstead of(Figure, NDArray[Axes]).- hdi_kwargs
dictorNone Extra kwargs forwarded to
azp.visuals.fill_between_y.- **pc_kwargs
Forwarded to
PlotCollection.grid().
- cv_data
- Returns:
tuple[Figure,NDArray[Axes]] orPlotCollection