diff --git a/python-package/xgboost/sklearn.py b/python-package/xgboost/sklearn.py index 82fbb3eefeb8..257cba0f942c 100644 --- a/python-package/xgboost/sklearn.py +++ b/python-package/xgboost/sklearn.py @@ -295,7 +295,7 @@ def validate_or_none(meta: Optional[List], name: str) -> List: return [None] * n_validation if len(meta) != n_validation: raise ValueError( - f"{name}'s length does not eqaul to `eval_set`, " + + f"{name}'s length does not equal `eval_set`'s length, " + f"expecting {n_validation}, got {len(meta)}" ) return meta