Reduce training set for a k-NN classifier. Used after condense.
Usage
reduce.nn(train, ind, class)
Arguments
train
matrix for training set
ind
Initial list of members of the training set (from condense).
class
vector of classifications for test set
Details
All the members of the training set are tried in random order.
Any which when dropped do not cause any members of the training set to
be wrongly classified are dropped.
Value
Index vector of cases to be retained.
References
Gates, G.W. (1972) The reduced nearest neighbor rule.
IEEE Trans. Information TheoryIT-18, 431–432.
Ripley, B. D. (1996)
Pattern Recognition and Neural Networks. Cambridge.
Venables, W. N. and Ripley, B. D. (2002)
Modern Applied Statistics with S. Fourth edition. Springer.