Skip to content

Commit

Permalink
Merge pull request #7014 from cjgunnar/fix-threshold-average-error-bars
Browse files Browse the repository at this point in the history
[FIX] Fix error bars for threshold averaged ROC curves
  • Loading branch information
janezd authored Feb 7, 2025
2 parents 416fd82 + 521d623 commit 70285e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/evaluate/owrocanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def roc_curve_threshold_average(curves, thresh_samples):
tpr_samples = np.array(tpr_samples)

return ((fpr_samples.mean(axis=0), fpr_samples.std(axis=0)),
(tpr_samples.mean(axis=0), fpr_samples.std(axis=0)))
(tpr_samples.mean(axis=0), tpr_samples.std(axis=0)))


def roc_curve_thresh_avg_interp(curves, thresh_samples):
Expand All @@ -914,7 +914,7 @@ def roc_curve_thresh_avg_interp(curves, thresh_samples):
tpr_samples = np.array(tpr_samples)

return ((fpr_samples.mean(axis=0), fpr_samples.std(axis=0)),
(tpr_samples.mean(axis=0), fpr_samples.std(axis=0)))
(tpr_samples.mean(axis=0), tpr_samples.std(axis=0)))


RocPoint = namedtuple("RocPoint", ["fpr", "tpr", "threshold"])
Expand Down

0 comments on commit 70285e3

Please sign in to comment.