autofeat 的特征选择原理
发布时间
阅读量:
阅读量
核心代码位于autofeat.autofeat.AutoFeatModel#fit_transform,完成特征生成操作后,将调用autofeat.featsel.select_features函数执行特征筛选过程。
在select_features函数内部,系统将进行featsel_runs次特征筛选操作。
selected_columns = []
for i in range(featsel_runs):
selected_columns.extend(run_select_features(i))
run_select_features 是一个在本地环境中声明的Local 函数。
def run_select_features(i):
if verbose > 0:
print("[featsel] Feature selection run %i/%i" % (i+1, featsel_runs))
np.random.seed(i) # todo rng
rand_idx = np.
全部评论 (0)
还没有任何评论哟~
