Leaklens

scikit-learn__scikit-learn-14983

RepeatedKFold and RepeatedStratifiedKFold do not show correct __repr__ string

Verdict: the issue text repeats lines of the gold patch (Tier C).

The `__repr__` is not defined in the `_RepeatedSplit` class from which these cross-validation are inheriting. A possible fix should be: ```diff diff --git a/sklearn/model_selection/_split.py b/sklearn/model_selection/_split.py index ab681e89c..8a16f68bc 100644 --- a/sklearn/model_selection/_split.py +++ b/sklearn/model_selection/_split.py @@ -1163,6 +1163,9 @@ class _RepeatedSplits(metaclass=ABCMeta): **self.cvargs) return cv.get_n_splits(X, y, groups) * self.n_repeats + def __repr__(self): + return _build_repr(self) + class RepeatedKFold(_RepeatedSplits): """Repeated K-Fold cross validator.

2 of 4 added patch lines appear in the issue or discussion.

All 500 SWE-bench Verified tasks · more scikit-learn/scikit-learn tasks · How the check works