Skip to content

Commit fa14001

Browse files
authored
DOC Link to right user guide section in StratifiedGroupKFold docstring (scikit-learn#29447)
1 parent 775587b commit fa14001

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/model_selection/_split.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,15 +866,15 @@ class StratifiedGroupKFold(GroupsConsumerMixin, _BaseKFold):
866866
Each group will appear exactly once in the test set across all folds (the
867867
number of distinct groups has to be at least equal to the number of folds).
868868
869-
The difference between :class:`~sklearn.model_selection.GroupKFold`
870-
and :class:`~sklearn.model_selection.StratifiedGroupKFold` is that
869+
The difference between :class:`GroupKFold`
870+
and `StratifiedGroupKFold` is that
871871
the former attempts to create balanced folds such that the number of
872872
distinct groups is approximately the same in each fold, whereas
873-
StratifiedGroupKFold attempts to create folds which preserve the
873+
`StratifiedGroupKFold` attempts to create folds which preserve the
874874
percentage of samples for each class as much as possible given the
875875
constraint of non-overlapping groups between splits.
876876
877-
Read more in the :ref:`User Guide <cross_validation>`.
877+
Read more in the :ref:`User Guide <stratified_group_k_fold>`.
878878
879879
For visualisation of cross-validation behaviour and
880880
comparison between common scikit-learn split methods

0 commit comments

Comments
 (0)