“ValueError: not enough values to unpack (expected 3, got 2)” in the fpr, tpr calculation on sklearn ROC example

后端 未结 0 1913
难免孤独
难免孤独 2021-01-21 17:56

My code to plot the ROC curve,

\'\'\'

true = y_true
pred = preds[:,0]
fpr = dict()
tpr = dict()
roc_auc = dict()
for i in range(2):
    fpr[i], tpr[i], _ =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题