I am trying to calculate roc_auc_score, but I am getting following error.
roc_auc_score
\"ValueError: Data is not binary and pos_label is not specified\"
We have problem in y_true=np.array(['0', '1', '0', '0', '1', '1', '1', '1', '1']) Convert values of y_true to Boolean
y_true=np.array(['0', '1', '0', '0', '1', '1', '1', '1', '1'])
y_true= '1' <= y_true print(y_true) # [False True False False True True True True True]