摘要: •特征重要性也被存放在tree中,被显示特征的重要性,介于0~1之间,越接近1表示越重要 •plt.barh((range(n_features), model.feature_importances_, align = 'cancer')) plt.barh(y, width,align)用来画横 阅读全文
posted @ 2020-02-08 20:25 啵仔 阅读(225) 评论(0) 推荐(0) 编辑
摘要: •决策树的可视化 ♠ export_graphviz(tree, out_file = None, class_names = ["malignant", "benign"], feature_names = cancer.feature_names, impurity = False, fille 阅读全文
posted @ 2020-02-08 13:41 啵仔 阅读(438) 评论(0) 推荐(0) 编辑