Description Usage Arguments Value Examples
This function uses k-nearest neighbour classification for test set from training set.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
the training data set |
cl |
factor of true classifications of training set |
k_nn |
number of neighbours considered |
k_cv |
integer representing the number of folds |
a list with a vector of the predicted class and a numeric with the cross-validation misclassification rate a numeric with the training misclassification rate
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.