4.3 Article

Introduction to machine learning: k-nearest neighbors

Journal

ANNALS OF TRANSLATIONAL MEDICINE
Volume 4, Issue 11, Pages -

Publisher

AME PUBL CO
DOI: 10.21037/atm.2016.03.37

Keywords

Machine learning; R; k-nearest neighbors (kNN); class; average accuracy; kappa

Ask authors/readers for more resources

Machine learning techniques have been widely used in many scientific fields, but its use in medical literature is limited partly because of technical difficulties. k-nearest neighbors (kNN) is a simple method of machine learning. The article introduces some basic ideas underlying the kNN algorithm, and then focuses on how to perform kNN modeling with R. The dataset should be prepared before running the knn() function in R. After prediction of outcome with kNN algorithm, the diagnostic performance of the model should be checked. Average accuracy is the mostly widely used statistic to reflect the kNN algorithm. Factors such as k value, distance calculation and choice of appropriate predictors all have significant impact on the model performance.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.3
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available