Skip to content

SPEC 7 Transition Tracker #21833

@mdhaber

Description

@mdhaber

Partial list of functions that use legacy seed or random_state behavior. Per SPEC 7, we're changing the keyword to rng.

Generated mostly by searching for check_random_state. Feel to add to this if I missed anything.

Boxes are checked when the transition_to_rng decorator has been applied. After two releases, we will enable warning messages, and in two more releases, we'll remove the decorator.


Checklist for PRs:

  • Applies the _transition_to_rng decorator
    • Passes correct old_name to decorator factory
    • Passes correct position_num to decorator factory
  • replaces old keyword in signature with rng
  • replaces documentation of old keyword with final documentation recommended by SPEC 7
  • replaces most uses of old keyword in tests / other functions with rng / Generator
  • notes remaining uses of old keyword (left to test backward compatibility during transition)
  • check that decorator has replaced documentation correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceItems related to regular maintenance tasks

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions