probly.visualization.credal.plot_2d¶
Plotting for 2 class probabilities.
Classes
Class to create 2d plots. |
- class probly.visualization.credal.plot_2d.IntervalVisualizer[source]¶
Bases:
objectClass to create 2d plots.
- interval_plot(probs, labels, title, mle_flag, credal_flag, ax=None)[source]¶
Plot the interval plot.
- Parameters:
probs (np.ndarray) – Probability vector for 2 classes.
title (str) – Title of the plot.
mle_flag (bool) – Flag to indicate whether median of probabilities is shown.
credal_flag (bool) – Flag to indicate whether min/max interval is shown.
ax (Axes | None) – Axes to draw the plot on. If None, a new Axes is created.
- Returns:
Interval plot.
- Return type:
Axes