Implementation of a feature weighted k-nearest neighbour classifier.
1 | weightedKNN(train.mat, test.mat, cl, k = 3, weights)
|
train.mat |
training data matrix, without class labels. |
test.mat |
test data matrix, without class labels. |
cl |
class labels for training data. |
k |
number of nearest neighbour to be used. |
weights |
weights to be assigned to each feautre. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.