Skip to content

Instantly share code, notes, and snippets.

@TheLoneNut
Created February 6, 2019 18:38
Show Gist options
  • Save TheLoneNut/13c07ffcfabfbdf6e593eff997b150ba to your computer and use it in GitHub Desktop.
Save TheLoneNut/13c07ffcfabfbdf6e593eff997b150ba to your computer and use it in GitHub Desktop.
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
clf1 = LinearDiscriminantAnalysis(n_components=2)
X1 = clf1.fit_transform(X, labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment