I've written code to compare Kaggle's and sklearn's ROC AUC, and they appear to be very different. The code to reproduce my results you can find here: [https://github.com/IraKorshunova/metrics_test](https://github.com/IraKorshunova/metrics_test) It gives: ``` Public Kaggle AUC: 0.77880025032 Public Sklearn AUC 0.757001519802 ``` AUC package in R gives the same score as Kaggle.
Activity
jnothman commentedon Apr 25, 2016
May be due to #3864, i.e. it relates to the handling of small differences between scores.
amueller commentedon Apr 25, 2016
or interpolation? but probably not. Would be nice to know the definition of AUC that kaggle uses without diving into the code...
IraKorshunova commentedon Apr 25, 2016
it's here: https://github.com/benhamner/Metrics/blob/master/Python/ml_metrics/auc.py
mblondel commentedon May 2, 2016
I think small differences are to be expected although here the difference seems large.
BTW, in our unit tests, we test our implementation against this alternative implementation:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/tests/test_ranking.py#L87
IraKorshunova commentedon May 2, 2016
The alternative gives AUC, which is very close to Kaggle's:
mblondel commentedon May 2, 2016
Could you plot the ROC curve?
IraKorshunova commentedon May 2, 2016
chickenpapaya commentedon Oct 5, 2016
I will take a look into this.
chickenpapaya commentedon Oct 21, 2016
This issue seems to be fixed now with sklearn version 0.18
The issue was fixed on this merge 49d126f
amueller commentedon Oct 21, 2016
Thanks for checking @chenhe95. Closing as fixed by #7331
mblondel commentedon Oct 25, 2016
chickenpapaya commentedon Oct 25, 2016
You might have read the comment I made (which was incorrect) prior to editing my post, since it says replied from mail.
jnothman commentedon Oct 25, 2016
@chenhe95 just to be sure, you retracted and no longer stand by your comment that blamed some difference on
drop_intermediate?chickenpapaya commentedon Oct 25, 2016
Yes. drop_intermediate was not the cause.
The cause was 49d126f which has already been taken care of.