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

feat: Use 'method' arg for jax.numpy.percentile #2522

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

matthewfeickert
Copy link
Member

@matthewfeickert matthewfeickert commented Jun 20, 2024

Description

  • Change the argument name in jax.numpy.percentile from 'interpolation' to 'method'. No change to the lower bounds on jax and jaxlib is required as 'method' already existed as an argument in jax v0.4.1. This just deprecates the use of 'interpolation'.
    • Avoids the following DeprecationWarning in jax v0.4.29+:
DeprecationWarning: The interpolation= argument to 'percentile' is deprecated. Use 'method=' instead.

The CI is failing given another DeprecationWarning fixed in PR #2523.

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Change the argument name in jax.numpy.percentile from 'interpolation' to 'method'.
  No change to the lower bounds on jax and jaxlib is required as 'method' already
  existed as an argument in jax v0.4.1. This just deprecates the use of 'interpolation'.
   - Avoids the following DeprecationWarning in jax v0.4.29+:

     > DeprecationWarning: The interpolation= argument to 'percentile' is deprecated.
     > Use 'method=' instead.
   - c.f. https://github.com/google/jax/pull/21267

* Change the argument name in jax.numpy.percentile from 'interpolation' to 'method'.
  No change to the lower bounds on jax and jaxlib is required as 'method' already
  existed as an argument in jax v0.4.1. This just deprecates the use of 'interpolation'.
   - Avoids the following DeprecationWarning in jax v0.4.29+:

     DeprecationWarning: The interpolation= argument to 'percentile' is deprecated.
     Use 'method=' instead.
   - c.f. https://github.com/google/jax/pull/ 21267
@matthewfeickert matthewfeickert added feat/enhancement New feature or request need-to-backport tmp label until can be backported to patch release branch labels Jun 20, 2024
@matthewfeickert matthewfeickert self-assigned this Jun 20, 2024
@matthewfeickert matthewfeickert merged commit 2e4b930 into main Jun 20, 2024
16 of 23 checks passed
@matthewfeickert matthewfeickert deleted the feat/use-method-over-interpolation branch June 20, 2024 04:04
@matthewfeickert matthewfeickert removed the need-to-backport tmp label until can be backported to patch release branch label Jun 20, 2024
@matthewfeickert
Copy link
Member Author

@meeseeksdev backport to release/v0.7.x

meeseeksmachine pushed a commit to meeseeksmachine/pyhf that referenced this pull request Jun 20, 2024
matthewfeickert added a commit that referenced this pull request Jun 20, 2024
* Backport PR #2522.
* Change the argument name in jax.numpy.percentile from 'interpolation' to 'method'.
  No change to the lower bounds on jax and jaxlib is required as 'method' already
  existed as an argument in jax v0.4.1. This just deprecates the use of 'interpolation'.

Co-authored-by: Matthew Feickert <matthew.feickert@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant