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 021818e commit 559ec05Copy full SHA for 559ec05
sklearn/utils/sparsefuncs.py
@@ -40,9 +40,7 @@ def csr_csc_min_axis0(X):
40
The minimum of elements along axis 0.
41
"""
42
43
- # TODO: I don't know how to avoid this call to `astype()`;
44
- # my test cases don't pass with integers otherwise.
45
- X = X.astype(float)
+ X = X.astype(np.float64)
46
if isinstance(X, sp.csr_matrix):
47
return csr_min_axis0(X)
48
elif isinstance(X, sp.csc_matrix):
@@ -64,9 +62,7 @@ def csr_csc_max_axis0(X):
64
62
The maximum of elements along axis 0.
65
63
66
67
68
69
70
71
return csr_max_axis0(X)
72
0 commit comments