Classify the input with a k nearest neighbors classifier.
A list generated by the function PrepareData. It is a list with two components. One is a vector of labels, the other is a data frame of features. The other element of the list is a data frame of test features.
A vector vector of vaues of k that should be tested.
A list with a dataframe of errors with corresponding k and a vector of predictions with the best k
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.