seismometer.plot.mpl.performance_metrics

seismometer.plot.mpl.performance_metrics(stats, *, conf=0.95, highlight=None, axis=None)

Single plot of sensitivity, specificity, and PPV.

Parameters:
  • stats (pd.DataFrame) – The table of performance metrics of the form given by calculate_bin_stats.

  • conf (Number, optional) – The confidence level for the performance metric, by default 0.95.

  • 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.

Return type:

Figure