Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wbo4958 committed Dec 4, 2024
1 parent a99fc79 commit 4e8d742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/spark/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def _validate_params(self) -> None:
)

if self.getOrDefault("early_stopping_rounds") is not None:
if self._col_is_defined_not_empty(self.validationIndicatorCol):
if not self._col_is_defined_not_empty(self.validationIndicatorCol):
raise ValueError(
"If 'early_stopping_rounds' param is set, you need to set "
"'validation_indicator_col' param as well."
Expand Down

0 comments on commit 4e8d742

Please sign in to comment.