Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎲 SPEC-7 API changes for 1.15.0 #257

Closed
8 tasks done
jorenham opened this issue Dec 4, 2024 · 0 comments · Fixed by #353
Closed
8 tasks done

🎲 SPEC-7 API changes for 1.15.0 #257

jorenham opened this issue Dec 4, 2024 · 0 comments · Fixed by #353
Assignees
Labels
scipy.* stubs: api change SciPy API changes following a release topic: upstream release SciPy releases
Milestone

Comments

@jorenham
Copy link
Owner

jorenham commented Dec 4, 2024

SciPy endorsed SPEC-7, which proposes a rng argument to control pseudorandom number generation (PRNG) in a standard way, replacing legacy arguments like seed and random_sate. In many cases, use of rng will change the behavior of the function unless the argument is already an instance of numpy.random.Generator.

The rng param has been added to the following functions in scipy 1.15:

  • cluster
    • vq.kmeans[2]
  • interpolate
    • BarycentricInterpolator
    • barycentric_interpolate
  • linalg
    • clarkson_woodruff_transform
    • _sketches.cwt_matrix
  • linalg.interpolative
    • estimate_rank
    • estimate_spectral_norm[_diff]
    • interp_decomp
    • svd
  • optimize
    • check_grad
    • basinhopping
    • differential_evolution
    • dual_annealing
    • quadratic_assignment
  • sparse
    • rand[om[_array]]
    • linalg.svds
  • spatial
    • transform.Rotation.random
    • distance.directed_hausdorff
  • stats
    • {Bootstrap,Permutation}Method
    • goodness_of_fit
    • bootstrap
    • permutation_test
    • dunnett
    • sobol_indices
    • qmc.* (all classes that consume random numbers)
@jorenham jorenham added this to the 1.15.0.0 milestone Dec 4, 2024
@jorenham jorenham added the stubs: api change SciPy API changes following a release label Dec 4, 2024
@jorenham jorenham changed the title SPEC-7 API changes for 1.15.0 (🎲) SPEC-7 API changes for 1.15.0 Dec 4, 2024
@jorenham jorenham added the topic: upstream release SciPy releases label Dec 5, 2024
@jorenham jorenham changed the title (🎲) SPEC-7 API changes for 1.15.0 🎲 SPEC-7 API changes for 1.15.0 Dec 6, 2024
@jorenham jorenham self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scipy.* stubs: api change SciPy API changes following a release topic: upstream release SciPy releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant