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\"
2条回答 心在旅途 (楼主) 2021-01-07 19:03 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= '1' <= y_true print(y_true) # [False True False False True True True True True] 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 自定义标题段落格式字体字号代码语言点击上传x 验证码 看不清? 提交回复
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]
热议问题