-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FEA Implementation of "threshold-dependent metric per threshold value" curve #25639
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
base: main
Are you sure you want to change the base?
Conversation
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
Awesome news! I might need a couple of weeks, but I would love to make this feature available! Will work on your comments as soon as I can, @glemaitre. |
|
It will be tight to get in 1.6 but it will be one of my prioritize PR for 1.7. |
|
@vitaliset , thanks for your patience on this. We discussed with @glemaitre and wanted to try and prioritize this. Are you still interested in working on this? If not, I am happy to push it forward, and you will still be credited. |
|
Hi @lucyleeow! I was trying to find some room to get back to this, but was away for most of last month. Happy to see you and @glemaitre are pushing this forward. Excited to see this feature out! If I can help with anything, please ping me again, and I'll be happy to assist. :) |
|
Thank you! |
Towards #21391.
Intending to later build the
MetricThresholdCurveDisplayfollowing the same structure that other Displays have, this PR implements the associate curve. I decided to break the original issue into two parts (curve and Display) for easier review (but I don't mind adding the Display to this PR as well).[Update 08 June 2024] The code example is outdated after Guillaume Lemaitre's first reviews. For instance, I've moved the code to metrics instead of inspection and changed the parameters names. Leaving it here because the idea is still similar. Will update this later.
A quick example of usage of the implementation here:
[Update 08 June 2024] Will be using the code from
_CurveScorerinstead of_binary_clf_curveas soon as I move it to metrics module.Most of the code for
metric_threshold_curvefunction is an adaptation of_binary_clf_curve.Points of doubt:
[Update 09 June 2024] When I come back to this PR, I need to do this before asking for a new review:
_CurveScorerfrommodel_selectiontometrics#29216._CurveScorerso I can dissociate getting y_score from the scoring itself such that here we only call the scoring part.decision_threshold_curvecode to use this new method of_CurveScorer.