| 1 | diff --git a/sklearn/model_selection/_split.py b/sklearn/model_selection/_split.py |
| 2 | --- a/sklearn/model_selection/_split.py |
| 3 | +++ b/sklearn/model_selection/_split.py |
| 4 | @@ -1163,6 +1163,9 @@ def get_n_splits(self, X=None, y=None, groups=None): |
| 5 | **self.cvargs) |
| 6 | return cv.get_n_splits(X, y, groups) * self.n_repeats |
| 7 | |
| 8 | + def __repr__(self): |
| 9 | + return _build_repr(self) |
| 10 | + |
| 11 | |
| 12 | class RepeatedKFold(_RepeatedSplits): |
| 13 | """Repeated K-Fold cross validator. |
| 14 | @@ -2158,6 +2161,8 @@ def _build_repr(self): |
| 15 | try: |
| 16 | with warnings.catch_warnings(record=True) as w: |
| 17 | value = getattr(self, key, None) |
| 18 | + if value is None and hasattr(self, 'cvargs'): |
| 19 | + value = self.cvargs.get(key, None) |
| 20 | if len(w) and w[0].category == DeprecationWarning: |
| 21 | # if the parameter is deprecated, don't show it |
| 22 | continue |