Description Usage Arguments Value Examples
This function predicts an output class using covariates from the same data set.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
Data frame input. |
cl |
Vector input containing the true class of the training data. |
k_nn |
Numeric input of the k-nearest neighbors. |
k_cv |
Numeric input of number of folds. |
List output containing predicted class and cross validation error.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.