StatisticSettings_PrepareClassification_knn
Source:R/class_S3_StatisticSettings.R
StatisticSettings_PrepareClassification_knn.Rd
Prepares a classification model using the k-nearest neighbors (knn) algorithm from package class.
Arguments
- k
Integer (length 1) with the number of neighbors to be used.
- l
Integer (length 1) with the minimum vote for definite decision, otherwise doubt. (More precisely, less than k-l dissenting votes are allowed, even if k is increased by ties.)
Value
A ProcessingSettings S3 class object with subclass StatisticSettings_PrepareClassification_knn.
References
Venables WN, Ripley BD (2002). Modern Applied Statistics with S, Fourth edition. Springer, New York. ISBN 0-387-95457-0, https://www.stats.ox.ac.uk/pub/MASS4/.