-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
ENH: Add weights option to numpy.quantile #16862
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
Conversation
@eric-wieser
We implement the third formula for the following reasons:
|
You have picked up a bunch of extraneous merges from master (19 commits), might want to rebase on master. |
6165d10
to
86c9538
Compare
9d46db7
to
3587c85
Compare
Hi @eric-wieser What can we do to help getting this PR accepted? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To move forward, I think we need to first come to a conclusion about gh-10736
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's discuss it at this week's triage meeting
close/reopen |
There are a lot of lint errors that need fixing. Hit details to see them. @mattip, do you recall the triage results? |
No I don't remember and the meeting notes do not mention it. I think though that @WarrenWeckesser self-assigned this? |
We discussed this in the Triage meeting a bit, and settled on "we want this". We are OK with the sorting approach and limiting e.g. only to |
So what should we do to make it merged? |
@iii-org-tw there are still a fewmoving parts here, rebasing is indeed the most important one. I also don't think the current API is quite what we need, so a proposal to pin it down further would be nice (should we name it |
9078c53
to
eb22b6d
Compare
I run tests locally and got no error but after I push the code, the Refguide Check failed.
I don't know what's wrong because I can get the right result when I run |
@iii-org-tw I don't immediately remember how to run the refguide check locally best. But, the example uses For the weights to broadcast with |
eb22b6d
to
6be8cc4
Compare
6be8cc4
to
b95e56a
Compare
b95e56a
to
4d0eefa
Compare
@seberg Now, I have rebased the branch and solved conflicts. A problem is now we add |
Closing, gh-24254 will probably happen, although I am sure it is not the same as this was proposing. |
w must have the same shape with a.shape or a[axis] when axis is int or None.
When w.shape == a.shape, it's the weights of each samples in a.
If w.shape != a.shape, it's the weights for each dimensions in a.
For example,
both weights of [1,2,3] and [4,5,6] are [10,11,12]