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

knn-class

K Nearest Neighbours model


Description

This class contains the classification model obtained by the k-NN method.

Slots

train

The training set (description). A data.frame.

labels

Class labels of the training set. Either a factor or an integer vector.

k

The k parameter.

See Also


fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

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