AUC Error – ValueError: Data is not binary and pos_label is not specified

When calculating the AUC value, I encountered the error’ValueError: Data is not binary and pos_label is not specified’.

The solution is as follows:

Print out the label data and find it is [0, 255], normalize the label data to [0, 1] to solve the problem successfully

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *