Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,9 @@ def _train(
# * 'num_threads': overridden to match nthreads on each Dask process
for param_alias in _ConfigAliases.get("num_machines", "num_threads"):
if param_alias in params:
_log_warning(f"Parameter {param_alias} will be ignored.")
# Only warn if user-set parameter will be overwritten
if params[param_alias] not in (-1, None):
_log_warning(f"Parameter {param_alias} will be ignored.")
params.pop(param_alias)

# Split arrays/dataframes into parts. Arrange parts into dicts to enforce co-locality
Expand Down
Loading