Skip to content

Commit

Permalink
Update dask.py
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Jan 31, 2021
1 parent 4b62420 commit fd33199
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python-package/lightgbm/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def _train(
for param_alias in _ConfigAliases.get('machines', 'num_machines', 'num_threads'):
params.pop(param_alias, None)

if client is None:
client = default_client()
# Split arrays/dataframes into parts. Arrange parts into dicts to enforce co-locality
data_parts = _split_to_parts(data=data, is_matrix=True)
label_parts = _split_to_parts(data=label, is_matrix=False)
Expand Down

0 comments on commit fd33199

Please sign in to comment.