From 038ad5d7d7c7032144bd516bab68dee8c7d95988 Mon Sep 17 00:00:00 2001 From: Ravjot Singh Samra <31635233+RavSS@users.noreply.github.com> Date: Sat, 20 Jul 2024 07:15:50 +1200 Subject: [PATCH] Fixed `AttributeError` in metrics/roc_auc.py. (#1568) `scipy.integrate.trapezoid` replaced `scipy.integrate.trapz` in SciPy. --- river/metrics/roc_auc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/river/metrics/roc_auc.py b/river/metrics/roc_auc.py index 3e7f780564..c3d6604f00 100644 --- a/river/metrics/roc_auc.py +++ b/river/metrics/roc_auc.py @@ -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)