from sklearn.feature_selection import VarianceThreshold
from sklearn.feature_selection import SelectFromModel
from sklearn.ensemble import GradientBoostingClassifier

# 基于gbdt的特征选择
# def selectFromGBDT(df_train, features, target):
#     SelectFromModel(GradientBoostingClassifier()).fit_transform(df_train[features], df_train[target])