Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from sklearn.feature_selection import SelectFromModel
  2. from sklearn.ensemble import GradientBoostingClassifier
  3. #GBDT as the feature selection of the base model
  4. SelectFromModel(GradientBoostingClassifier()).fit_transform(iris.data, iris.target)
Add Comment
Please, Sign In to add comment