Classify a test set by 1-NN from a specified LVQ codebook.
codebook object returned by other LVQ software
matrix of test examples
Uses 1-NN to classify each test example against the codebook.
Factor of classification for each row of
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.
# The function is currently defined as function(codebk, test) knn1(codebk$x, test, codebk$cl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.