代码
#查看AUC和ROC
auc=roc_auc_score(y1_test,y_predict)
print("AUC指标为:",auc)
pred=estimator.predict_proba(x1_test)[:,1]
fpr, tpr, threshold = metrics.roc_curve(y1_test, pred)
roc_auc = metrics.auc(fpr, tpr)
刚开始入门
请问auc和roc_auc这两个变量的值为啥不一样啊?
代码
#查看AUC和ROC
auc=roc_auc_score(y1_test,y_predict)
print("AUC指标为:",auc)
pred=estimator.predict_proba(x1_test)[:,1]
fpr, tpr, threshold = metrics.roc_curve(y1_test, pred)
roc_auc = metrics.auc(fpr, tpr)
刚开始入门
请问auc和roc_auc这两个变量的值为啥不一样啊?