Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.feature_selection import SelectKBest
- from sklearn.feature_selection import chi2
- #Select K best features, return the data after selecting the feature
- SelectKBest(chi2, k=2).fit_transform(iris.data, iris.target)
Add Comment
Please, Sign In to add comment