Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lvqtest

Classify Test Set from LVQ Codebook


Description

Classify a test set by 1-NN from a specified LVQ codebook.

Usage

lvqtest(codebk, test)

Arguments

codebk

codebook object returned by other LVQ software

test

matrix of test examples

Details

Uses 1-NN to classify each test example against the codebook.

Value

Factor of classification for each row of x

References

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.

See Also

Examples

# The function is currently defined as
function(codebk, test) knn1(codebk$x, test, codebk$cl)

class

Functions for Classification

v7.3-19
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre, cph], William Venables [cph]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.