@@ -26,7 +26,6 @@ from ._utils cimport log
26
26
from ._utils cimport rand_int
27
27
from ._utils cimport rand_uniform
28
28
from ._utils cimport RAND_R_MAX
29
- from ..utils._sorting cimport simultaneous_sort
30
29
31
30
cdef double INFINITY = np.inf
32
31
@@ -342,7 +341,7 @@ cdef class BestSplitter(BaseDenseSplitter):
342
341
for i in range (start, end):
343
342
Xf[i] = self .X[samples[i], current.feature]
344
343
345
- simultaneous_sort (& Xf[start], & samples[start], end - start)
344
+ sort (& Xf[start], & samples[start], end - start)
346
345
347
346
if Xf[end - 1 ] <= Xf[start] +
AA0F
FEATURE_THRESHOLD:
348
347
features[f_j], features[n_total_constants] = features[n_total_constants], features[f_j]
@@ -1161,11 +1160,11 @@ cdef class BestSparseSplitter(BaseSparseSplitter):
1161
1160
current.feature = features[f_j]
1162
1161
self .extract_nnz(current.feature, & end_negative, & start_positive,
1163
1162
& is_samples_sorted)
1164
-
1165
1163
# Sort the positive and negative parts of `Xf`
1166
- simultaneous_sort (& Xf[start], & samples[start], end_negative - start)
1164
+ sort (& Xf[start], & samples[start], end_negative - start)
1167
1165
if start_positive < end:
1168
- simultaneous_sort(& Xf[start_positive], & samples[start_positive], end - start_positive)
1166
+ sort(& Xf[start_positive], & samples[start_positive],
1167
+ end - start_positive)
1169
1168
1170
1169
# Update index_to_samples to take into account the sort
1171
1170
for p in range (start, end_negative):
0 commit comments