Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 219bc2f

Browse files
committed
BUG: ShuffleSplit: repr for random_state not number
1 parent d7d64b6 commit 219bc2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cross_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def __iter__(self):
723723

724724
def __repr__(self):
725725
return ('%s(%d, n_iterations=%d, test_fraction=%s, indices=%s, '
726-
'random_state=%d)' % (
726+
'random_state=%s)' % (
727727
self.__class__.__name__,
728728
self.n,
729729
self.n_iterations,

0 commit comments

Comments
 (0)