You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
river version: 0.21.2 Python version: 3.11.7 Operating system: macOS 14.4
Describe the bug
When following along with the sentence classification example, the core training loop did not succeed as documented, but instead errored:
File [~/.pyenv/versions/3.11.7/envs/ds/lib/python3.11/site-packages/river/metrics/roc_auc.py:103](http://localhost:8888/lab/tree/~/.pyenv/versions/3.11.7/envs/ds/lib/python3.11/site-packages/river/metrics/roc_auc.py#line=102), in ROCAUC.get(self)
100 tprs[i] = safe_div(a=tp, b=tp + fn)
101 fprs[i] = safe_div(a=fp, b=fp + tn)
--> 103 return -integrate.trapz(x=fprs, y=tprs)
AttributeError: module 'scipy.integrate' has no attribute 'trapz'
As far as I can tell, the issue is that the June release of scipy v1.14.0 included a number of "expired deprecations", and integrate.trapz has been removed in favor of integrate.trapezoid,
Versions
river version: 0.21.2
Python version: 3.11.7
Operating system: macOS 14.4
Describe the bug
When following along with the sentence classification example, the core training loop did not succeed as documented, but instead errored:
As far as I can tell, the issue is that the June release of
scipy
v1.14.0 included a number of "expired deprecations", andintegrate.trapz
has been removed in favor ofintegrate.trapezoid
,Steps/code to reproduce
The text was updated successfully, but these errors were encountered: