Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn lda

from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
lda = LDA(n_components = 2)
X_train = lda.fit_transform(X_train, y_train)
X_test = lda.transform(X_test)
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #lda
ADD COMMENT
Topic
Name
3+3 =