`cohens_kappa()` is a metric scoring function that returns the Cohen's Kappa statistic. Not an exported function.

cohens_kappa(TP, TN, FP, FN)

Arguments

TP

- [scalar] True Positives

TN

- [scalar] True Negatives

FP

- [scalar] False Positives

FN

- [scalar] False Negatives

Value

[scalar] Cohen's Kappa statistic

Details

This function takes integer counts for True Positive `TP`, True Negative `TN`, False Positive `FP`, and False Negative `FN` values and returns the Cohen's Kappa. This statistic measure the agreement between observations and predictions. See: https://en.wikipedia.org/wiki/Cohen