From a4874e173ffae5b7f6455e78b12a8ad9ad6d07c7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:13:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- elk/metrics/eval.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elk/metrics/eval.py b/elk/metrics/eval.py index 26d3c512..0cdfb032 100644 --- a/elk/metrics/eval.py +++ b/elk/metrics/eval.py @@ -89,6 +89,7 @@ def calc_auroc( return auroc + def calc_calibrated_accuracies(y_true, pos_probs) -> AccuracyResult: """ Calculate the calibrated accuracies @@ -106,6 +107,7 @@ def calc_calibrated_accuracies(y_true, pos_probs) -> AccuracyResult: cal_acc = accuracy_ci(y_true, cal_preds) return cal_acc + def calc_calibrated_errors(y_true, pos_probs) -> CalibrationEstimate: """ Calculate the expected calibration error. @@ -122,6 +124,7 @@ def calc_calibrated_errors(y_true, pos_probs) -> CalibrationEstimate: cal_err = cal.compute() return cal_err + def calc_accuracies(y_logits, y_true) -> AccuracyResult: """ Calculate the accuracy