lib5c.util.metrics module

Module containing utility functions used for computing scoring metrics.

lib5c.util.metrics.cohens_kappa(y1, y2)[source]

Computes Cohen’s kappa score for the agreement between two classifications.

Implementation taken from sklearn.metrics.cohen_kappa_score().

Parameters:y2 (y1,) – The two classifications.
Returns:The kappa.
Return type:float