我使用 ANOVA 选择了特征(因为我有数值数据作为输入,分类数据作为目标):
anova = SelectKBest(score_func=f_classif, k='all')
anova.fit(X_train, y_train.values.argmax(1)) # y_train.values.argmax(1) because I already one-hot-encoded the target.
当我绘制分数时,它会显示图像中的数字:
plt.xlabel("Number of features selected")
plt.ylabel("Score (nb of correct classifications)")
plt.plot(range(len(anova.scores_)), anova1.scores_)
plt.show()
这个数字的解释是什么?为什么剧情有些中断?
