Open jGaboardi opened 1 year ago
We should ideally refactor our random-based code paths based on new numpy generator logic (see https://github.com/geopandas/geopandas/blob/b4b10313ab57bf2c55592a28fb99687c9a538fc2/geopandas/tools/_random.py#L42) while doing that.
I am also not sure what should be the keyword called. numpy is using rng
, seaborn seed
, sklearn random_state
and they all mean roughly the same thing...
Yeah, spopt
also uses both seed
and random_state
.
That is even better :D
I would like to gauge interest in adding a
seed
keyword for the random distributions inrandom.py
. While results are reproducible by setting a seed manually prior to call a distribution function, it would be beneficial to do so in a more automated fashion. With the initial inclusion ofpointpats
random distribution ingeopandas
(https://github.com/geopandas/geopandas/pull/2860), the may be of particular use. Within thesample_points()
method over there, aseed
keyword can be passed in, but is not used when generating points withpointpats
.cc @martinfleis @ljwolf @knaaptime