Description Usage Arguments Value Examples
Performs a KNN cross-validation test.
1 | my_knn_cv(train, cl, k_nn, k_cv)
|
train |
Dataframe with training data, without response variable. |
cl |
Factor of response variables. |
k_nn |
Integer representing number of nearest neighbors. |
k_cv |
Integer for number of folds in cross validation. |
List with elements:
class
- Factor of classification using the training data,
cv_err
- Numeric representing cross-validation error.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.