weightedKNN: Implementation of a feature weighted k-nearest neighbour...

Description Usage Arguments

View source: R/weightedKNN.R

Description

Implementation of a feature weighted k-nearest neighbour classifier.

Usage

1
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.


AdaSampling documentation built on May 21, 2019, 9:02 a.m.