weightedKNN {AdaSampling} | R Documentation |
Implementation of a feature weighted k-nearest neighbour classifier.
Description
Implementation of a feature weighted k-nearest neighbour classifier.
Usage
weightedKNN(train.mat, test.mat, cl, k = 3, weights)
Arguments
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. |
[Package AdaSampling version 1.3 Index]