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