plot.plot_error_boxplot()

Plot cross-validation error distributions by forecast horizon.

Usage

Source

plot.plot_error_boxplot(
    error_df,
    error_name,
    metric,
    area,
)

Parameters

error_df: pd.DataFrame

Dataframe with errors for each fold, metric, area, and horizon.

error_name: str

Name of error column in error_df to plot.

metric: str

Name of ambulance metric to plot.

area: str
Name of area to plot.

Returns

matplotlib.axes.Axes
Axes containing the boxplot.