Guest User

Untitled

a guest
Aug 17th, 2019
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data