Advertisement
lamiastella

acc val

Dec 4th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.22 KB | None | 0 0
  1. total_corrects_normal_loss = 33 + 43 + 36 + 46 + 36 + 44 + 45 + 38 + 40 + 33
  2. totals         = 91 + 90 + 89 + 87 + 86 + 86 + 85 + 84 + 83 + 83
  3.  
  4. c1_corr_normal_loss = 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0
  5. c1_tot  = 3 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2
  6.  
  7. c2_corr_normal_loss = 5 + 5 + 4 + 3 + 4 + 7 + 8 + 4 + 5 + 0
  8. c2_tot  = 14 + 14 + 14 + 14 + 14 + 14 + 13 + 13 + 13 + 13
  9.  
  10. c3_corr_normal_loss = 17 + 23 + 19 + 21 + 20 + 20 + 17 + 23 + 20 + 20
  11. c3_tot  = 26 + 26 + 26 + 26 + 26 + 26 + 26 + 26 + 26 + 26
  12.  
  13. c4_corr_normal_loss = 0 + 1 + 1 + 4 + 1 + 2 + 1 + 1 + 0 + 0
  14. c4_tot  = 5 + 5 + 5 + 5 + 4 + 4 + 4 + 4 + 4 + 4
  15.  
  16. c5_corr_normal_loss = 1 + 2 + 3 + 3 + 4 + 1 + 3 + 1 + 1 + 0
  17. c5_tot  = 11 + 11 + 11 + 10 + 10 + 10 + 10 + 10 + 10 + 10
  18.  
  19. c6_corr_normal_loss = 4 + 3 + 3 + 3 + 1 + 3 + 3 + 1 + 2 + 1
  20. c6_tot  = 6 + 6 + 6 + 6 + 6 + 6 + 6 + 5 + 5 + 5
  21.  
  22. c7_corr_normal_loss = 5 + 4 + 6 + 10 + 3 + 10 + 10 + 8 + 10 + 10
  23. c7_tot  = 16 + 16 + 15 + 15 + 15 + 15 + 15 + 15 + 15 + 15
  24.  
  25. c8_corr_normal_loss = 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0
  26. c8_tot  = 3 + 3 + 3 + 3 + 3 + 3 + 3 + 3 + 2 + 2
  27.  
  28. c9_corr_normal_loss = 1 + 5 + 0 + 2 + 3 + 1 + 3 + 0 + 2 + 2
  29. c9_tot  = 7 + 7 + 7 + 6 + 6 + 6 + 6 + 6 + 6 + 6
  30.  
  31. acc1_normal = c1_corr_normal_loss / c1_tot
  32. acc2_normal = c2_corr_normal_loss / c2_tot
  33. acc3_normal = c3_corr_normal_loss / c3_tot
  34. acc4_normal = c4_corr_normal_loss / c4_tot
  35. acc5_normal = c5_corr_normal_loss / c5_tot
  36. acc6_normal = c6_corr_normal_loss / c6_tot
  37. acc7_normal = c7_corr_normal_loss / c7_tot
  38. acc8_normal = c8_corr_normal_loss / c8_tot
  39. acc9_normal = c9_corr_normal_loss / c9_tot
  40.  
  41.  
  42.  
  43.  
  44. acc_normal = total_corrects_normal_loss / totals
  45.  
  46.  
  47. print('acc class 1 normal {:.3f} '.format(acc1_normal*100))
  48. print('acc class 2 normal {:.3f}'.format(acc2_normal*100))
  49. print('acc class 3 normal {:.3f}'.format(acc3_normal*100))
  50. print('acc class 4 normal {:.3f}'.format(acc4_normal*100))
  51. print('acc class 5 normal {:.3f}'.format(acc5_normal*100))
  52. print('acc class 6 normal {:.3f}'.format(acc6_normal*100))
  53. print('acc class 7 normal {:.3f}'.format(acc7_normal*100))
  54. print('acc class 8 normal {:.3f}'.format(acc8_normal*100))
  55. print('acc class 9 normal {:.3f}'.format(acc9_normal*100))
  56.  
  57.  
  58. print('total acc normal {:.3f}'.format(acc_normal*100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement