Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 13, 2021
1 parent 7543b27 commit 559f0bd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions python-package/xgboost/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ async def _predict_async(

def predict(
self,
data: _DaskCollection,
X: _DaskCollection,
output_margin: bool = False,
ntree_limit: Optional[int] = None,
validate_features: bool = True,
Expand All @@ -1290,10 +1290,13 @@ def predict(
_assert_dask_support()
msg = '`ntree_limit` is not supported on dask, use model slicing instead.'
assert ntree_limit is None, msg
return self.client.sync(self._predict_async, data,
output_margin=output_margin,
validate_features=validate_features,
base_margin=base_margin)
return self.client.sync(
self._predict_async,
X,
output_margin=output_margin,
validate_features=validate_features,
base_margin=base_margin
)

def __await__(self) -> Awaitable[Any]:
# Generate a coroutine wrapper to make this class awaitable.
Expand Down

0 comments on commit 559f0bd

Please sign in to comment.