Guest User

Untitled

a guest
Jul 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. from sklearn.decomposition import PCA
  2. #Principal component analysis method, returning the data after dimension reduction
  3. #Parameter n_components number of main components
  4. PCA(n_components=2).fit_transform(iris.data)
Add Comment
Please, Sign In to add comment