Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Sep 21, 2022
1 parent 5b3666d commit cef7dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python-package/xgboost/spark/core.py
Expand Up @@ -297,7 +297,8 @@ def _validate_params(self):

if self.isDefined(self.early_stopping_rounds):
if not (
self.isDefined(self.validationIndicatorCol) and self.getOrDefault(self.validationIndicatorCol)
self.isDefined(self.validationIndicatorCol)
and self.getOrDefault(self.validationIndicatorCol)
):
raise ValueError(
"If 'early_stopping_rounds' param is set, you need to set "
Expand Down

0 comments on commit cef7dee

Please sign in to comment.