python对随机森林分类结果绘制roc曲线

上图: 附上代码:一个函数,传入三个参数 .....传入参数,训练模型,然后: fit = model.fit(x_train, y_training) # ROC y_score = model.fit(x_train, y_training).predict_proba(x_test) # 随机森林 fpr, tpr, thresholds = roc_curve(y_test, y_sco
相关文章
相关标签/搜索