8000 changing the code as per suggestion · scikit-learn/scikit-learn@5e76ebd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e76ebd

Browse files
committed
changing the code as per suggestion
1 parent 31d1a91 commit 5e76ebd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/_isotonic.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _inplace_contiguous_isotonic_regression(floating[::1] y, floating[::1] w):
6060
i = k
6161

6262

63-
def _make_unique(const floating[:, ::1] X,
63+
def _make_unique(const floating[:] X,
6464
const floating[::1] y,
6565
const floating[::1] sample_weights):
6666
"""Average targets for duplicate X, drop duplicates.
@@ -91,7 +91,7 @@ def _make_unique(const floating[:, ::1] X,
9191
cdef int j
9292
cdef floating x
9393
cdef int n_samples = len(X)
94-
cdef floating eps = np.finfo(X.dtype).resolution
94+
cdef floating eps = np.finfo(dtype).resolution
9595

9696
for j in range(n_samples):
9797
x = X[j]

0 commit comments

Comments
 (0)
0