Description Usage Arguments Value
Fast binary KNN classifier
1 | trqwe_KNN(distmat, train_idx, test_idx, classes, K, mc.cores = 1)
|
distmat |
A NxN pre-computed distance matrix |
train_idx |
Train indicies |
test_idx |
Test indicies |
classes |
vector length N, 1 or 0 |
K |
Number of nearest neighbors parameter |
mc.cores |
Number of threads to use |
A prediction vector for the test set based on the class labels of the train set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.