Guest User

Untitled

a guest
Jul 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. from sklearn.feature_selection import SelectKBest
  2. from sklearn.feature_selection import chi2
  3. #Select K best features, return the data after selecting the feature
  4. SelectKBest(chi2, k=2).fit_transform(iris.data, iris.target)
Add Comment
Please, Sign In to add comment