Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.feature_selection import RFECV
- svc = sklearn.svm.LinearSVC() #estimator
- rfecv = RFECV(estimator=svc, scoring='accuracy')
- rfecv.fit(X, y)
- rfecv.support_ # check out which features were selected
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement