Skip to content

random_state parameter causes error #1

@mcormier

Description

@mcormier

k_fold = StratifiedKFold(n_splits=k, random_state=42)

Setting a random_state on StratifiedKFold will cause the following error:

ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True.

I had to remove the parameter to get the code to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions