Skip to main content

Module knn

Module knn 

Source
Expand description

k-Nearest-Neighbours classifier (ISL ch 2/4) — a lazy learner: store the training set, classify a query by majority vote of its k nearest neighbours (squared Euclidean). Kernel-class AllPairs (query↔train distances).

Structs§

KnnClassifier
A fitted (stored) k-NN classifier.