plot.plot_cross_validation()

Plot observed and forecast values from all cross-validation folds.

Usage

Source

plot.plot_cross_validation(
    historic,
    forecast,
    metric,
    area,
    start_date=None,
    end_date=None,
    forecast_colour=None,
    forecast_name="Forecast"
)

Parameters

historic: pd.DataFrame

Historic data.

forecast: pd.DataFrame

Forecast results.

metric: str

Name of metric.

area: str

Name of area.

start_date: pd.Timestamp = None

Date to show data from.

end_date: pd.Timestamp = None

Date to show data up to.

forecast_colour: str = None

Colour for the forecast line and prediction interval.

forecast_name: str = "Forecast"
Label to use for forecast in title of the plot.

Returns

matplotlib.figure.Figure
Forecast figure.