seismometer.plot.mpl.calibration

seismometer.plot.mpl.calibration(truth, output, *, highlight=None, axis=None)

Plots the calibration curve for the model.

Parameters:
  • truth (pd.Series) – The true labels.

  • output (pd.Series) – The model 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.

Return type:

Figure