Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. [in:]
  2. tot_accuracy = sum(test['func'] == test['predicted']) / len(test)
  3. print("Accuracy all 8 classes together: {}".format(tot_accuracy))
  4.  
  5. # Total Cohens Kappa
  6. tot_kappa = (fe_accuracy - 0.125) / 0.125
  7. print("Cohens Kappa all 8 classes together: {}".format(tot_kappa))
  8.  
  9. [out:]
  10. Accuracy all 8 classes together: 0.8285714285714286
  11. Cohens Kappa all 8 classes together: 5.628571428571429
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement