Learn R Programming

class (version 7.3-23)

Functions for Classification

Description

Various functions for classification, including k-nearest neighbour, Learning Vector Quantization and Self-Organizing Maps.

Copy Link

Version

Install

install.packages('class')

Monthly Downloads

26,672

Version

7.3-23

License

GPL-2 | GPL-3

Maintainer

Brian Ripley

Last Published

January 1st, 2025

Functions in class (7.3-23)

SOM

Self-Organizing Maps: Online Algorithm
lvq1

Learning Vector Quantization 1
batchSOM

Self-Organizing Maps: Batch Algorithm
knn1

1-Nearest Neighbour Classification
knn.cv

k-Nearest Neighbour Cross-Validatory Classification
condense

Condense training set for k-NN classifier
knn

k-Nearest Neighbour Classification
lvq2

Learning Vector Quantization 2.1
lvqinit

Initialize a LVQ Codebook
lvq3

Learning Vector Quantization 3
multiedit

Multiedit for k-NN Classifier
somgrid

Plot SOM Fits
olvq1

Optimized Learning Vector Quantization 1
reduce.nn

Reduce Training Set for a k-NN Classifier
lvqtest

Classify Test Set from LVQ Codebook