Feature importance in Python using SelectKBest

前端 未结 0 794
傲寒
傲寒 2021-01-05 06:04

I am trying to get the top 5 features for my dataframe df with X_train and y_train.

bestfeatures = SelectKBest(score_func=chi2, k=5) #k=5 means select top 5 f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题