Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.decomposition import PCA
- #Principal component analysis method, returning the data after dimension reduction
- #Parameter n_components number of main components
- PCA(n_components=2).fit_transform(iris.data)
Add Comment
Please, Sign In to add comment