Description Usage Arguments Value Examples
This function performs k-nearest neighbors cross-validation.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
Input data frame to be trained. |
cl |
Vector of true class value of the training data. |
k_nn |
Numeric input representing number of neighbors. |
k_cv |
Numeric input representing number of folds. |
A list with a vector of the predicted class and cross-validation misclassification error.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.