From 0fb43a699970b1596fade875f5244d8b5c29d8c8 Mon Sep 17 00:00:00 2001 From: graue70 <23035329+graue70@users.noreply.github.com> Date: Wed, 28 Jul 2021 10:21:34 +0200 Subject: [PATCH] Fix typo and grammatical mistake in error message --- python-package/xgboost/sklearn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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