SHARE
TWEET

Untitled

a guest Aug 17th, 2019 59 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
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