Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import pandas as pd
  3.  
  4.  
  5. d = {
  6. 'Knn': {'Separted':0.78, 'Joint':0.74},
  7. 'Naive Bayes': {'Separted':0.74, 'Joint':0.67},
  8. 'Decesion Trees': {'Separted':0.73, 'Joint':0.75},
  9. 'Random Forest': {'Separted':0.83, 'Joint':0.73},
  10. }
  11.  
  12.  
  13. pd.DataFrame(d).T.plot(kind='bar')
  14. plt.ylabel('F-Scores')
  15. plt.xticks(rotation=0)
  16.  
  17. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement