Skip to content

Commit

Permalink
fix threshold average tpr_std
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgunnar authored Jan 31, 2025
1 parent 091e88c commit 521d623
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)))

Check warning on line 917 in Orange/widgets/evaluate/owrocanalysis.py

View check run for this annotation

Codecov / codecov/patch

Orange/widgets/evaluate/owrocanalysis.py#L917

Added line #L917 was not covered by tests


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

0 comments on commit 521d623

Please sign in to comment.