Skip to content

DEP: stats: deprecate support for _rvs using _random_state. #15924

@h-vetinari

Description

@h-vetinari

Coming out of #15917 which addressed a deprecation from #11394

gh-11394 suggested that it was supposed to do something similar w.r.t. random_state: remove reliance of _rvs methods on a _random_state attribute and instead require that they accept a random_state parameter. However, it did not raise a deprecation warning for _rvs methods that don't accept random_state, and _random_state is still used throughout the distribution infrastructure, so I didn't touch that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deprecatedItems related to behavior that has been deprecatedscipy.stats

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions