Description
In SPEC7 scientific-python/specs#180, has two goals:
- Deprecate the use of
RandomState
andnp.random.seed
- Standardize the usage of
rng
for setting seeding.
For 1, according to NEP19, I do not think NumPy wants to deprecate np.random.seed
because they see valid use cases.
For 2, the primary reason around using rng
instead of random_state
is that it is a "better name" for NumPy's Random Generator. I am okay with keeping random_state
and not have users go the pain of changing their code.
Currently, scikit-learn does not support generators because we tied it to scikit-learn/enhancement_proposals#88. We wanted to use generators to cleanly switch to a different RNG behavior compared to RandomState. For me, I think they can be decoupled. If we tackle scikit-learn/enhancement_proposals#88, we can fix it for both RandomState and Generators.
@scikit-learn/core-devs What do you think of SPEC7's proposal?