Description Usage Arguments Details Value
k-Nearest Neighbor classifier with multiple k
1 | knn4(x, y, k)
|
x |
a matrix of training set predictors |
y |
a factor vector of training set classes |
k |
number of neighbours considered. |
knn3
is essentially the same code as ipredknn
and knn3Train
is a copy of knn
. The underlying C
code from the class
package has been modified to return the vote
percentages for each class (previously the percentage for the winning class
was returned).
An object of class knn3
. See predict.knn3
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.