8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8189bc3 commit 7152419Copy full SHA for 7152419
sklearn/utils/tests/test_validation.py
@@ -656,11 +656,13 @@ def X_64bit(request):
656
X = sp.rand(20, 10, format=request.param)
657
658
if request.param == "coo":
659
- if hasattr(X, "indices"):
660
- # for scipy >= 1.13 .indices is a new attribute and is a tuple. The
+ if hasattr(X, "coords"):
+ # for scipy >= 1.13 .coords is a new attribute and is a tuple. The
661
# .col and .row attributes do not seem to be able to change the
662
# dtype, for more details see https://github.com/scipy/scipy/pull/18530/
663
- X.indices = tuple(v.astype("int64") for v in X.indices)
+ # and https://github.com/scipy/scipy/pull/20003 where .indices was
664
+ # renamed to .coords
665
+ X.coords = tuple(v.astype("int64") for v in X.coords)
666
else:
667
# scipy < 1.13
668
X.row = X.row.astype("int64")
0 commit comments