Module containing utility functions used for computing scoring metrics.
lib5c.util.metrics.
cohens_kappa
Computes Cohen’s kappa score for the agreement between two classifications.
Implementation taken from sklearn.metrics.cohen_kappa_score().
y2 (y1,) – The two classifications.
The kappa.
float