Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. X_Reduced, X_Test_Reduced, Y_Reduced, Y_Test_Reduced = train_test_split(X_lda, Y,
  2. test_size = 0.30,
  3. random_state = 101)
  4.  
  5. start = time.process_time()
  6. lda = LinearDiscriminantAnalysis().fit(X_Reduced,Y_Reduced)
  7. print(time.process_time() - start)
  8. predictionlda = lda.predict(X_Test_Reduced)
  9. print(confusion_matrix(Y_Test_Reduced,predictionlda))
  10. print(classification_report(Y_Test_Reduced,predictionlda))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement