seismometer.plot.mpl.ppv_vs_sensitivity¶
- seismometer.plot.mpl.ppv_vs_sensitivity(ppv, sensitivity, thresholds, *, conf_interval=None, highlight=None, axis=None)¶
Plots the PPV vs Sensitivity (precision-recall curve).
Will optionally highlight thresholds on the curve.
- Parameters:
ppv (pd.Series) – The positive predictive value (precision).
sensitivity (pd.Series) – The sensitivity (recall).
thresholds (pd.Series) – The thresholds of the model, used for annotations.
conf_interval (Optional['ValueWithCI'], optional) – The confidence interval for the AUCPR, by default None.
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