LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

[python-package] Suppress confusing warning in dask module

Open wohoef opened this issue 7 months ago • 1 comments

This commit prevents UserWarning: Parameter n_jobs will be ignored. from being emitted each time a model is trained with the lightgbm.dask estimators.

The warning is now only shown if a user provides a specific, non-default value (neither None nor -1).

Fixes #6797

wohoef avatar Jul 30 '25 19:07 wohoef

Thank you for the feedback James. I'll try to see if I can work on writing some tests :)

wohoef avatar Jul 30 '25 22:07 wohoef