Hi,

On Thu Feb 19 2015 at 10:58:26 PM Andy <t3k...@gmail.com> wrote:

>  You give the roc_auc_score the result of "predict". You should give it
> the result of "predict_proba".
>
>
Yes! Thought for me roc_auc_score complains if I pass the result of
predict_proba (wrong shape) but the output of decision_function() works.
Which makes sense. Presumably if you used only the last column of the
predict_proba() output it would also work.


> This came up already quite a bit, not sure how we can avoid people making
> this mistake.
>
>
Not sure either, as soon as I read it I went: "Aahh, yes obviously Tim you
muppet". I do't think there is a good way for roc_auc_score() to
detect/guess that the user is being an idiot and passed a y_score which
contains only two distinct values.

T
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to