def drop_feature(data):
drop_list = []
for i in range(data.shape[1]):
for j in range(i,data.shape[1]):
s = sps.spearmanr(data[:,i],data[:,j])[0]
if abs(s)>0.8:
drop_list.append(j)
drop_list = set(drop_list)
return drop_list
#select imp feature
generate_ngram_bleu.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录