seismometer.plot.mpl.histogram_stacked

seismometer.plot.mpl.histogram_stacked(y_label, output, *, highlight=None, bins=20, axis=None, show_legend=True)

Plots a stacked histogram of the model output by class.

Parameters:
  • y_label (pd.Series) – The groundtruth or class label.

  • output (pd.Series) – The models output predictions.

  • highlight (Optional[list[Number]], optional) – A list of thresholds to highlight on the plot, by default None.

  • axis (Optional[plt.Axes], optional) – The matplotlib axis to draw, by default None; creates a new figure.

  • show_legend (bool, optional) – A flag to show the legend, by default True.

  • bins (int | Iterable)

Return type:

Figure