Description Usage Arguments Value See Also
View source: R/tree-based_kappa.R
Split x and y into k folds. For each fold; train a univariate tree and get the probalities for the hold-out. Then, obtain the optimal split and calculate Cohen's kappa on y and y hat.
1 | get_kappa(x, y, k = 10)
|
x |
A numerical vector. |
y |
A binary variable that can be coerced to factor. |
k |
The number of folds to use in cross-validation. |
An object of class ggplot.
https://edwinth.github.io/blog/tree-based-kappa/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.