plots.plot_prediction_set_size_distribution

plots.plot_prediction_set_size_distribution(
    prediction_sets,
    title='Prediction Set Size Distribution',
)

Plot the distribution of prediction set sizes.

Parameters

prediction_sets : list of lists

Each inner list is the prediction set for one sample.

title : str = 'Prediction Set Size Distribution'

Title of the plot.

Returns

fig : matplotlib.figure.Figure

The figure object.

ax : matplotlib.axes.Axes

The axes object.