Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [in:]
- tot_accuracy = sum(test['func'] == test['predicted']) / len(test)
- print("Accuracy all 8 classes together: {}".format(tot_accuracy))
- # Total Cohens Kappa
- tot_kappa = (fe_accuracy - 0.125) / 0.125
- print("Cohens Kappa all 8 classes together: {}".format(tot_kappa))
- [out:]
- Accuracy all 8 classes together: 0.8285714285714286
- Cohens Kappa all 8 classes together: 5.628571428571429
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement