8000 DEBUG uncomment if condition · scikit-learn/scikit-learn@3ea3829 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ea3829

Browse files
committed
DEBUG uncomment if condition
1 parent eb75a30 commit 3ea3829

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sklearn/ensemble/_hist_gradient_boosting/splitting.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# cython: cdivision=True
2-
# cython: boundscheck=False
2+
# cython: boundscheck=True
33
# cython: wraparound=False
44
# cython: language_level=3
55

@@ -394,12 +394,12 @@ cdef class Splitter:
394394
&left_indices_buffer[offset_in_buffers[thread_idx]],
395395
sizeof(unsigned int) * left_counts[thread_idx]
396396
)
397-
if right_counts[thread_idx] > 0:
398-
memcpy(
399-
&sample_indices[right_offset[thread_idx]],
400-
&right_indices_buffer[offset_in_buffers[thread_idx]],
401-
sizeof(unsigned int) * right_counts[thread_idx]
402-
)
397+
#if right_counts[thread_idx] > 0:
398+
memcpy(
399+
&sample_indices[right_offset[thread_idx]],
400+
&right_indices_buffer[offset_in_buffers[thread_idx]],
401+
sizeof(unsigned int) * right_counts[thread_idx]
402+
)
403403

404404
return (sample_indices[:right_child_position],
405405
sample_indices[right_child_position:],

0 commit comments

Comments
 (0)
0