Skip to content

ValueError: Only one class present in y_true. ROC AUC score is not defined in that case. #100

Description

@akhanss

Hi,
Thanks for a valuable repo and optimized implementation of several metrics. When I try to run this command "isic-challenge-scoring classification TRUTH.csv PREDICTIONS.csv", it gives me an error as follows:

ValueError: Only one class present in y_true. ROC AUC score is not defined in that case.

A few lines of TRUTH.csv

image,MEL,NV,BCC,AK,BKL,DF,VASC,SCC,UNK
ISIC_0000000,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
ISIC_0000001,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
ISIC_0000002,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
ISIC_0000003,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0
ISIC_0000004,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0

A few lines of PREDICTIONS.csv

image,MEL,NV,BCC,AK,BKL,DF,VASC,SCC,UNK
ISIC_0000000,0.130210,0.704888,0.300995,0.105880,0.504354,0.887364,0.184612,0.143236,0.448738
ISIC_0000001,0.219628,0.961962,0.035617,0.210906,0.974445,0.353588,0.237173,0.812199,0.146444
ISIC_0000002,0.018923,0.366575,0.383216,0.855024,0.319168,0.625167,0.941004,0.446885,0.270534
ISIC_0000003,0.176881,0.629271,0.761698,0.118103,0.941182,0.508196,0.662666,0.801909,0.769961
ISIC_0000004,0.636356,0.791720,0.413283,0.123713,0.052849,0.684307,0.268413,0.431863,0.127759

Could you please check at your convenience? Thank you very much.
Regards,
Azam.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions