[dask] Fix union of workers. (#6375)
This commit is contained in:
@@ -627,7 +627,7 @@ def _get_workers_from_data(dtrain: DaskDMatrix, evals=()):
|
||||
assert len(e) == 2
|
||||
assert isinstance(e[0], DaskDMatrix) and isinstance(e[1], str)
|
||||
worker_map = set(e[0].worker_map.keys())
|
||||
X_worker_map.union(worker_map)
|
||||
X_worker_map = X_worker_map.union(worker_map)
|
||||
return X_worker_map
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user