Elffuss BraidHub

kikocis/auto-code-rover public

main · 1.3 KiBRawPermalink
1RepeatedKFold and RepeatedStratifiedKFold do not show correct __repr__ string
2#### Description
3
4`RepeatedKFold` and `RepeatedStratifiedKFold` do not show correct \_\_repr\_\_ string.
5
6#### Steps/Code to Reproduce
7
8```python
9>>> from sklearn.model_selection import RepeatedKFold, RepeatedStratifiedKFold
10>>> repr(RepeatedKFold())
11>>> repr(RepeatedStratifiedKFold())
12```
13
14#### Expected Results
15
16```python
17>>> repr(RepeatedKFold())
18RepeatedKFold(n_splits=5, n_repeats=10, random_state=None)
19>>> repr(RepeatedStratifiedKFold())
20RepeatedStratifiedKFold(n_splits=5, n_repeats=10, random_state=None)
21```
22
23#### Actual Results
24
25```python
26>>> repr(RepeatedKFold())
27'<sklearn.model_selection._split.RepeatedKFold object at 0x0000016421AA4288>'
28>>> repr(RepeatedStratifiedKFold())
29'<sklearn.model_selection._split.RepeatedStratifiedKFold object at 0x0000016420E115C8>'
30```
31
32#### Versions
33```
34System:
35 python: 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
36executable: D:\anaconda3\envs\xyz\python.exe
37 machine: Windows-10-10.0.16299-SP0
38
39BLAS:
40 macros:
41 lib_dirs:
42cblas_libs: cblas
43
44Python deps:
45 pip: 19.2.2
46setuptools: 41.0.1
47 sklearn: 0.21.2
48 numpy: 1.16.4
49 scipy: 1.3.1
50 Cython: None
51 pandas: 0.24.2
52```