getKappa | R Documentation |
Returns Kappa value
getKappa(pred, obs, classes = c(0, 1))
pred |
vector of predicted labels. |
obs |
vector of observed labels. |
classes |
vector of length 2 with negative and positive class labels. |
Kappa value.
set.seed(42)
obs <- sample(0:1, 10, TRUE)
pred <- sample(0:1, 10, TRUE)
getKappa(pred, obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.