plots.plot_interval_widths
plots.plot_interval_widths(
intervals,
*,
ax=None,
bins=30,
title=None,
show_stats=True,
figsize=(8, 5),
)Plot histogram of interval widths.
Parameters
intervals : array-like of shape (n_samples, 2)-
Prediction intervals [lower, upper].
ax : matplotlib.axes.Axes = None-
Axes to plot on. If None, creates new figure.
bins : int = 30-
Number of histogram bins.
title : str = None-
Plot title.
show_stats : bool = True-
Whether to show mean/median statistics.
figsize : tuple = (8, 5)-
Figure size if creating new figure.
Returns
fig : matplotlib.figure.Figure-
The figure object.
ax : matplotlib.axes.Axes-
The axes object.