From c53d59f8db69bf97861ed5384e6f77e17e423518 Mon Sep 17 00:00:00 2001 From: Ammar Azman <88831990+Ammar-Azman@users.noreply.github.com> Date: Wed, 31 Jan 2024 15:18:16 +0800 Subject: [PATCH] [doc] Fix typos in code (#10023) change `resutls` to `results` --- doc/python/sklearn_estimator.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python/sklearn_estimator.rst b/doc/python/sklearn_estimator.rst index a4835dcac..207b9fa30 100644 --- a/doc/python/sklearn_estimator.rst +++ b/doc/python/sklearn_estimator.rst @@ -104,7 +104,7 @@ using cross validation with early stopping, here is a snippet to begin with: clf = xgb.XGBClassifier(tree_method="hist", early_stopping_rounds=3) - resutls = {} + results = {} for train, test in cv.split(X, y): X_train = X[train] @@ -114,7 +114,7 @@ using cross validation with early stopping, here is a snippet to begin with: est, train_score, test_score = fit_and_score( clone(clf), X_train, X_test, y_train, y_test ) - resutls[est] = (train_score, test_score) + results[est] = (train_score, test_score) ***********************************