View source: R/KNNclassifier.R
KNNclassifier | R Documentation |
k-nearest neighbor clssifier
KNNclassifier(k, TrainData, TrainCls, TestData, Verbose)
k |
the number of neighbor to use |
TrainData |
matrix [n,d] containing classified data |
TrainCls |
vector [1:n] containing the classes of TrainData |
TestData |
matrix [m,d] containing unclassified data Verbose default ==1, progress report |
Verbose |
Optional: progress report. Default: 1 |
KNNTestCls |
Vector [1:m], a KNN classification of TestData |
04/15 RG, imported from matlab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.