-
-
Save sazio/ce5bca68324e4d20fff414391da39ba2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.feature_selection import SelectFromModel | |
# configure to select a subset of features | |
fs = SelectFromModel(RandomForestClassifier(n_estimators=200), max_features=5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment