SHARE
TWEET

Untitled

a guest Oct 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##PLOTTING OVERALL SCORES:
  2. plt.figure()
  3.  
  4. plt.title('Overall F-Scores')
  5. list = []
  6. for i in scores_sf:
  7.     list.append(scores_sf[i])
  8.     print(scores_sf[i])
  9. plt.boxplot(list)
  10.  
  11. list = []
  12. for i in scores_ml:
  13.     list.append(scores_ml[i])
  14.     print(scores_ml[i])
  15. plt.boxplot(list)
  16.  
  17.  
  18.  
  19.  
  20. ##PLOTTING ALL OTHER SCORES: (they're all basically the same)
  21. fig, (ax1, ax2) = plt.subplots(1, 2)
  22.  
  23. ax1.set_title('Player Scores')
  24. print('SF!')
  25. matrix = []
  26. for player_id in player_scores_sf:
  27.     sf_player_list = []
  28.     for track_id in player_scores_sf[player_id]:
  29.         print(score)
  30.         score = player_scores_sf[player_id][track_id]
  31.         sf_player_list.append(score)
  32.     matrix.append(sf_player_list)
  33. ax1.boxplot(matrix)
  34.    
  35. print('ML!')
  36. matrix = []
  37. for player_id in player_scores_ml:
  38.     ml_player_list = []
  39.     for track_id in player_scores_ml[player_id]:
  40.         print(score)
  41.         score = player_scores_ml[player_id][track_id]
  42.         ml_player_list.append(score)
  43.     matrix.append(ml_player_list)
  44. ax2.boxplot(matrix)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top