Skip to content
Open
Changes from all commits
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
5 changes: 4 additions & 1 deletion python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,10 @@ 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
val = params[param_alias]
if val not in (-1, None):
_log_warning(f"Parameter {param_alias}={val} will be ignored. This is automatically adjusted to match the Dask cluster. To suppress this warning, pass {param_alias}=-1 or remove {param_alias} entirely.")
params.pop(param_alias)

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