Repository navigation
[MRG] ENH Quantile bin support for calibration_curve - #13087
Conversation
|
I'm a little confused why Travis says |
|
Yes. You can use percentile for now
|
|
Use strategy='uniform' vs 'quantile' by analogy to KBinsDiscretizer?
|
|
Good suggestions. Any other comments? I'm wondering:
|
jnothman
left a comment
There was a problem hiding this comment.
Otherwise I think this looks good
|
|
||
| strategy : {'uniform', 'quantile'}, (default='uniform') | ||
| Strategy used to define the widths of the bins. | ||
| uniform |
There was a problem hiding this comment.
put a blank line before this for correct rendering in HTML
There was a problem hiding this comment.
You're saying a blank line between the lines starting with "strategy" and the line with "uniform"?
jnothman
left a comment
There was a problem hiding this comment.
Please rename the PR from WIP to MRG
|
cool. anything else I can do? |
jnothman
left a comment
There was a problem hiding this comment.
Please wait for another review. It can be slow.
Please add an entry to the change log at doc/whats_new/v0.21.rst. Like the other entries there, please reference this pull request with :issue: and credit yourself (and other contributors if applicable) with :user:
|
Added the entry to whats_new. |
Fixes #13086
As discussed in issue #13086, I’ve added support for the bins in calibration_curve to be set by equally separated quantiles of the data.
To do this, I added a new kwarg,
quantile_splitwhich is False by default, but adds the functionality when it is set to True.I added a simple test for the functionality within tests.test_calibration.test_calibration_curve that mimics the tests for the basic functionality.
Any suggestions for changes? Should we add a more illustrative example to the examples pages?