From cef7deec5c90fe16b5521466f50c724c4743ec3f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 21 Sep 2022 03:18:37 +0000 Subject: [PATCH] fix lint --- python-package/xgboost/spark/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-package/xgboost/spark/core.py b/python-package/xgboost/spark/core.py index 64183f816240..c00430a701a8 100644 --- a/python-package/xgboost/spark/core.py +++ b/python-package/xgboost/spark/core.py @@ -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 "