Skip to content

DOC Clarify random_state parameter in KFold() doc #5201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 2, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sklearn/cross_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ class KFold(_BaseKFold):
"""K-Folds cross validation iterator.

Provides train/test indices to split data in train test sets. Split
dataset into k consecutive folds (without shuffling).
dataset into k consecutive folds (without shuffling by default).

Each fold is then used a validation set once while the k - 1 remaining
fold form the training set.
Expand All @@ -272,8 +272,8 @@ class KFold(_BaseKFold):
Whether to shuffle the data before splitting into batches.

random_state : None, int or RandomState
Pseudo-random number generator state used for random
sampling. If None, use default numpy RNG for shuffling
When shuffle=True, pseudo-random number generator state used for
shuffling. If None, use default numpy RNG for shuffling.

Examples
--------
Expand Down Expand Up @@ -362,8 +362,8 @@ class StratifiedKFold(_BaseKFold):
into batches.

random_state : None, int or RandomState
Pseudo-random number generator state used for random
sampling. If None, use default numpy RNG for shuffling
When shuffle=True, pseudo-random number generator state used for
shuffling. If None, use default numpy RNG for shuffling.

Examples
--------
Expand Down