Skip to content

Commit

Permalink
DOC Correct typos in 10.3.3.2 Robustness (scikit-learn#30827)
Browse files Browse the repository at this point in the history
  • Loading branch information
star1327p authored Feb 14, 2025
1 parent 5c95ebe commit 2b97ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/common_pitfalls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ When we evaluate a randomized estimator performance by cross-validation, we
want to make sure that the estimator can yield accurate predictions for new
data, but we also want to make sure that the estimator is robust w.r.t. its
random initialization. For example, we would like the random weights
initialization of a :class:`~sklearn.linear_model.SGDClassifier` to be
initialization of an :class:`~sklearn.linear_model.SGDClassifier` to be
consistently good across all folds: otherwise, when we train that estimator
on new data, we might get unlucky and the random initialization may lead to
bad performance. Similarly, we want a random forest to be robust w.r.t the
bad performance. Similarly, we want a random forest to be robust w.r.t. the
set of randomly selected features that each tree will be using.

For these reasons, it is preferable to evaluate the cross-validation
Expand Down

0 comments on commit 2b97ac5

Please sign in to comment.