Skip to content

Commit

Permalink
Fixed AttributeError in metrics/roc_auc.py. (#1568)
Browse files Browse the repository at this point in the history
`scipy.integrate.trapezoid` replaced `scipy.integrate.trapz` in SciPy.
RavSS authored Jul 19, 2024
1 parent 51bb834 commit 038ad5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion river/metrics/roc_auc.py
Original file line number Diff line number Diff line change
@@ -100,4 +100,4 @@ def safe_div(a, b):
tprs[i] = safe_div(a=tp, b=tp + fn)
fprs[i] = safe_div(a=fp, b=fp + tn)

return -integrate.trapz(x=fprs, y=tprs)
return -integrate.trapezoid(x=fprs, y=tprs)

0 comments on commit 038ad5d

Please sign in to comment.