Description Usage Arguments Value Examples
This function perform Cross-Validation k-Nearest Neighbors Cross-Validation.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
The training input data frame. |
cl |
True class value of |
k_nn |
Integer representing the number of neighbors. |
k_cv |
Integer representing the number of folds. |
A list of predicted class
and a numeric with the
cross-validation misclassification error cv-err
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.