piecewise_linear_fit_py icon indicating copy to clipboard operation
piecewise_linear_fit_py copied to clipboard

update to new numpy random seed generator normals

Open cjekel opened this issue 9 months ago • 0 comments

It looks like numpy random has gone over a large overhaul. See https://numpy.org/doc/2.2/reference/random/generated/numpy.random.seed.html

I should update all of the numpy random to use the latest generator changes.

In addition, scipy functions that use seed= are going to be depreciated in favor of rng=. When this happens, this will break pwlf, until I change the source in the differential_evolution and stats.qmc.LatinHypercube calls to use rng=. I don't want to do this yet... since many people (including me) are still using version that do not support rng= as a keyword argument.

see https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.qmc.LatinHypercube.html https://scientific-python.org/specs/spec-0007/

cjekel avatar Feb 20 '25 04:02 cjekel