1、计算feature 在随机树林分类中的重要性
forest = ExtraTreesClassifier(n_estimators=250,
random_state=0)
forest.fit(X, y)
importances = forest.feature_importances_
2、循环的运用 3、params.update(setting),参数更新4、cs = plt.contourf(xx, yy, Z, cmap=plt.cm.Paired) 绘制带填充色的二维等高线图
5\idx = np.where(y == i) 获得满足条件的位置

1万+

被折叠的 条评论
为什么被折叠?



