-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[WIP] BUG make _weighted_percentile(data, ones, 50) consistent with numpy.median(data) #17377
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
Closed
Closed
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
2ecc96d
check diabetes
lucyleeow deacbf5
use diabetes and cali
lucyleeow f257ff1
pytest network
lucyleeow e0b00ac
Merge remote-tracking branch 'origin/master' into pr/lucyleeow/16937
glemaitre 31a116e
BUG make _weighted_percentile behave as NumPy
glemaitre 6c8a405
iter
glemaitre 23af759
revert setup.cfg
glemaitre 3be7c09
iter
glemaitre 06aeab1
iter
glemaitre f389292
iter
glemaitre 9e1222f
iter
glemaitre 9314aee
iter
glemaitre 0e857a9
iter
glemaitre 5988234
improve documentation
glemaitre 8100873
iter
glemaitre cc4a172
iter
glemaitre 4e100a9
parametrize debug
glemaitre 25e5d24
iter
glemaitre ff2a6e0
case we have a single weight non null
glemaitre 201f0c7
update test
glemaitre d8a4a73
compat old numpy
glemaitre 450f4c8
iter
glemaitre 19588fb
loss decreasing assert
glemaitre 2d3d9fb
iter
glemaitre 89e8ccc
remove a test
glemaitre ef9d882
iter
glemaitre 84d782e
tst old numpy
glemaitre 882a354
iter
glemaitre 79b719f
TST add to check the equivalence repeated/weights
glemaitre babd758
try all interpolation
glemaitre c26403e
add comments on method
glemaitre e269247
wip
lucyleeow e6ce12b
Merge branch 'test_grad_boost' of github.com:lucyleeow/scikit-learn i…
lucyleeow 5bf3b8f
Merge branch 'master' into test_grad_boost
lucyleeow 70de4b9
use make regression
lucyleeow 65f11e9
fix lint
lucyleeow 7a61848
up rtol
lucyleeow bda24fa
[empty] CI
lucyleeow 475db41
try rtol float
lucyleeow b631eb4
reduc rtol
lucyleeow 5e3b31c
rtol=100
lucyleeow 97281b2
suggestions
lucyleeow 899d56d
use weighted_percentile everywhere
glemaitre cd4344b
iter
glemaitre 2327f98
Merge remote-tracking branch 'origin/master' into is/17370
glemaitre 2de439b
iter
glemaitre 45f6123
Merge remote-tracking branch 'lucyleeow/test_grad_boost' into is/17370
glemaitre c02f1ea
iter
glemaitre d47b162
iter
glemaitre 089da6b
iter
glemaitre 548bda1
change name variable
glemaitre 7ca2d47
Merge remote-tracking branch 'origin/master' into is/17370
glemaitre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@lucyleeow I added your test here. Using the strategy
nearest
everywhere seems to be the winner here to be able to keep thesample_weight
semantic rights.