We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d80ab81 commit be8b69cCopy full SHA for be8b69c
1 file changed
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"):
+ if hasattr(X, "coords"):
660
# for scipy >= 1.13 .indices 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)
+ # Also indices was renamed to coords in
664
+ # https://github.com/scipy/scipy/pull/20003
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