Description Usage Arguments Value Examples
This function predicts output class.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
Input data frame. |
cl |
True class value of your training data. |
k_nn |
Integer representing the number of neighbors. |
k_cv |
Integer representing the number of folds. |
List with objects: a vector of the predicted class Y for all
observations class
and a numeric with the cross-validation
misclassification error cv_err
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.