【发布时间】:2017-08-30 15:13:32
【问题描述】:
我正在使用 scikit-learn 进行特征选择。这是我的代码
from sklearn.feature_selection import GenericUnivariateSelect
from sklearn.feature_selection import f_classif
scores = GenericUnivariateSelect(f_classif, 'k_best').fit(features_pd, target_pd)
如何使用f_classif是CV的方式,结果更可靠?
【问题讨论】:
标签: python scikit-learn feature-selection