File tree 1 file changed +7
-7
lines changed
sklearn/ensemble/_hist_gradient_boosting 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
# cython: cdivision=True
2
- # cython: boundscheck=False
2
+ # cython: boundscheck=True
3
3
# cython: wraparound=False
4
4
# cython: language_level=3
5
5
@@ -394,12 +394,12 @@ cdef class Splitter:
394
394
& left_indices_buffer[offset_in_buffers[thread_idx]],
395
395
sizeof(unsigned int ) * left_counts[thread_idx]
396
396
)
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
+ )
403
403
404
404
return (sample_indices[:right_child_position],
405
405
sample_indices[right_child_position:],
You can’t perform that action at this time.
0 commit comments