Guest User

Untitled

a guest
Jul 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from sklearn.lda import LDA
  2. #linear discriminant analysis method, returning the data after dimensionality reduction
  3. #Parameter n_components is the dimensionality after dimension reduction
  4. LDA(n_components=2).fit_transform(iris.data, iris.target)
Add Comment
Please, Sign In to add comment