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

Skip to content

Better documentation for random_state in model selection module  #16096

Closed
@keyianpai

Description

@keyianpai

Sort of like #15222 , but for model selection .

For any public object that accepts a random_state parameter, we should document what parts of the algorithm are randomized. It's not always obvious what is and what isn't randomized. We should also always link to the glossary, where the different possible values of random_state are clearly explained.

For example for the random forest estimators, it would be helpful to indicate that random_state determines in particular the subsampling of the samples and the subsampling of the features. Something like:

random_state : int, np.random.RandomStateInstance or None, default=None
Controls the randomness of the estimator, in particular the subsampling
of the samples and the subsampling of the features. See
term:random_state for details.

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