Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 2, 2020
1 parent 94569e6 commit bd81ff0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python-package/xgboost/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
from .sklearn import XGBModel, XGBRegressorBase, XGBClassifierBase
from .sklearn import xgboost_model_doc

try:
from distributed import Client
except ImportError:
Client = None

# Current status is considered as initial support, many features are
# not properly supported yet.
#
Expand Down Expand Up @@ -360,7 +365,7 @@ def get_worker_data_shape(self, worker):
cols = c
return (rows, cols)

from distributed import Client

def _get_rabit_args(worker_map, client: Client, host_ip=None, port=None):
'''Get rabit context arguments from data distribution in DaskDMatrix.'''
msg = 'Please provide both IP and port'
Expand Down

0 comments on commit bd81ff0

Please sign in to comment.