-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Use cross_validation.cross_val_score with metrics.precision_recall_fscore_support #1837
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
Comments
You would need to do |
Yes, @solomonm, something like this was my initial motivation for #1768. Allowing scoring functions to return a tuple, as you have attempted here, would suffice for some cases, but not for In that PR I implemented an approach in which I would still like something like this available, but it needs a fresh understanding of what a |
I think for for @solomonm a quick hack in cross_val_score would probably help (as I think he doesn't want to compare scores). I am really really sorry I didn't have more time to look at your work and it is really high up in my sklearn priority queue. |
@andreas Totally, this is really only useful to help the analyst assess performance on multiple measures (very common use case). I doubt using this for param tuning will be a common use case. On Thu, Apr 4, 2013 at 6:16 AM, Andreas Mueller [email protected]
|
@solomonm just a quick github reminder: if you use Do you know what to change to make this work? I will try to do it on the weekend. |
It is addressed by the new scorer interface. |
err not by the one that was already merged, right? |
I have closed this a bit fast. |
the multi-metric support was not merged, pending further discussion of what it should look like. |
What is the status of this? |
@mwjackson It is part of @rvraghav93's google summer of code this year. nothing finished yet, though. |
Any update on this? |
same as in july ;) getting there. |
I think the elided "now that GSoC has concluded" might have been intended! On 1 September 2015 at 04:35, Andreas Mueller [email protected]
|
I take the full blame for not having finished this during my GSoC... :) Now that #4294 is merged, I will start working on it shortly and hope to get this merged ASAP!! |
Progress? |
See #2759 (comment) for the latest! |
Although #7388 appears close to being accepted for merge, I'd like to discuss the broader question of whether extending When I suggested such a hook for diverse diagnostics years ago, someone -- @GaelVaroquaux I assume -- suggested it's not so hard to roll your own CV/search so why need such a callback? Many features have been added since to Advantages of extending scoring as in #7388:
Disadvantages:
What's the right compromise? |
I've added a couple of points to my previous comment. |
I'd like to use cross_validation.cross_val_score with metrics.precision_recall_fscore_support so that I can get all relevant cross-validation metrics without having to run my cross-validation once for accuracy, once for precision, once for recall, and once for f1. But when I try this I get a ValueError:
The text was updated successfully, but these errors were encountered: