Answers for "lda python code using sklearn"

1

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)
Posted by: Guest on January-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language