incerto.shift.plot_shift_severity

incerto.shift.plot_shift_severity#

incerto.shift.plot_shift_severity(severity_values, shift_scores, severity_label='Shift Severity', score_label='Shift Score', warning_threshold=None, critical_threshold=None, show=True)[source]#

Plot shift scores against a severity measure (e.g., rotation degrees, time).

Parameters:
  • severity_values (Iterable[float]) – X-axis values (e.g., [0, 10, 20, 30, 45])

  • shift_scores (Iterable[float]) – Corresponding shift scores

  • severity_label (str) – Label for x-axis

  • score_label (str) – Label for y-axis

  • warning_threshold (Optional[float]) – Optional threshold line for warnings

  • critical_threshold (Optional[float]) – Optional threshold line for critical alerts

  • show (bool) – Whether to call plt.show() (default: True)

Return type:

Figure

Returns:

The matplotlib Figure object for further customization