8000 FIX Fixes bug with upstream numpy · thomasjpfan/scikit-learn@7eb55ec · GitHub
[go: up one dir, main page]

Skip to content

Commit 7eb55ec

Browse files
committed
FIX Fixes bug with upstream numpy
1 parent 8381211 commit 7eb55ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/preprocessing/_encoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def transform(self, X):
544544

545545
indptr = np.empty(n_samples + 1, dtype=int)
546546
indptr[0] = 0
547-
np.sum(X_mask, axis=1, out=indptr[1:])
547+
np.sum(X_mask, axis=1, out=indptr[1:], dtype=indptr.dtype)
548548
np.cumsum(indptr[1:], out=indptr[1:])
549549
data = np.ones(indptr[-1])
550550

0 commit comments

Comments
 (0)
0