Skip to content

kaggle AUC != sklearn AUC #6711

Closed
Closed

Description

@IraKorshunova

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
It gives:

Public Kaggle AUC: 0.77880025032
Public Sklearn AUC 0.757001519802

AUC package in R gives the same score as Kaggle.

Activity

  1. jnothman commented on Apr 25, 2016

    @jnothman
    Member

    May be due to #3864, i.e. it relates to the handling of small differences between scores.

  2. amueller commented on Apr 25, 2016

    @amueller
    Member

    or interpolation? but probably not. Would be nice to know the definition of AUC that kaggle uses without diving into the code...

  3. mblondel commented on May 2, 2016

    @mblondel
    Member

    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

  4. IraKorshunova commented on May 2, 2016

    @IraKorshunova
    Author

    The alternative gives AUC, which is very close to Kaggle's:

    Public Kaggle AUC: 0.77880025032
    Public Sklearn AUC 0.757001519802
    Public Alternative sklearn AUC 0.776839407575
    
  5. mblondel commented on May 2, 2016

    @mblondel
    Member

    Could you plot the ROC curve?

  6. IraKorshunova commented on May 2, 2016

    @IraKorshunova
    Author

    figure_1

  7. added this to the 0.18 milestone on Aug 31, 2016
  8. modified the milestones: 0.18, 0.19 on Sep 22, 2016
  9. modified the milestone: 0.19 on Sep 29, 2016
  10. chickenpapaya commented on Oct 5, 2016

    @chickenpapaya
    Contributor

    I will take a look into this.

  11. chickenpapaya commented on Oct 21, 2016

    @chickenpapaya
    Contributor

    This issue seems to be fixed now with sklearn version 0.18
    The issue was fixed on this merge 49d126f

  12. amueller commented on Oct 21, 2016

    @amueller
    Member

    Thanks for checking @chenhe95. Closing as fixed by #7331

  13. mblondel commented on Oct 25, 2016

    @mblondel
    Member
  14. chickenpapaya commented on Oct 25, 2016

    @chickenpapaya
    Contributor

    You might have read the comment I made (which was incorrect) prior to editing my post, since it says replied from mail.

  15. jnothman commented on Oct 25, 2016

    @jnothman
    Member

    @chenhe95 just to be sure, you retracted and no longer stand by your comment that blamed some difference on drop_intermediate?

  16. chickenpapaya commented on Oct 25, 2016

    @chickenpapaya
    Contributor

    Yes. drop_intermediate was not the cause.
    The cause was 49d126f which has already been taken care of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions