Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X_Reduced, X_Test_Reduced, Y_Reduced, Y_Test_Reduced = train_test_split(X_lda, Y,
- test_size = 0.30,
- random_state = 101)
- start = time.process_time()
- lda = LinearDiscriminantAnalysis().fit(X_Reduced,Y_Reduced)
- print(time.process_time() - start)
- predictionlda = lda.predict(X_Test_Reduced)
- print(confusion_matrix(Y_Test_Reduced,predictionlda))
- print(classification_report(Y_Test_Reduced,predictionlda))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement