File tree 2 files changed +8
-2
lines changed
sklearn/ensemble/_hist_gradient_boosting
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,12 @@ Changelog
330
330
:class: `ensemble.ExtraTreesClassifier `.
331
331
:pr: `20803 ` by :user: `Brian Sun <bsun94> `.
332
332
333
+ - |Fix | Removed a potential source of CPU oversubscription in
334
+ :class: `ensemble.HistGradientBoostingClassifier ` and
335
+ :class: `ensemble.HistGradientBoostingRegressor ` when CPU resource usage is limited,
336
+ for instance using cgroups quota in a docker container. :pr: `22566 ` by
337
+ :user: `Jérémie du Boisberranger <jeremiedbb> `.
338
+
333
339
:mod: `sklearn.feature_extraction `
334
340
.................................
335
341
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ cdef class Splitter:
335
335
336
336
# map indices from sample_indices to left/right_indices_buffer
337
337
for thread_idx in prange(n_threads, schedule = ' static' ,
338
- chunksize = 1 ):
338
+ chunksize = 1 , num_threads = n_threads ):
339
339
left_count = 0
340
340
right_count = 0
341
341
@@ -377,7 +377,7 @@ cdef class Splitter:
377
377
# sample_indices. This also updates self.partition since
378
378
# sample_indices is a view.
379
379
for thread_idx in prange(n_threads, schedule = ' static' ,
380
- chunksize = 1 ):
380
+ chunksize = 1 , num_threads = n_threads ):
381
381
memcpy(
382
382
& sample_indices[left_offset[thread_idx]],
383
383
& left_indices_buffer[offset_in_buffers[thread_idx]],
You can’t perform that action at this time.
0 commit comments