articleAnnals of Translational MedicineJun 1, 2016HYBRID OA

Introduction to machine learning: k-nearest neighbors

Zhejiang University · Jinhua Central Hospital

PubMed
Indexed incrossrefpubmed

Abstract

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…

Citation impact

1,246
total citations
FWCI
18.11
Percentile
100%
References
10
Citations per year

Authors

1

Topics & keywords

Keywords
  • k-nearest neighbors algorithm
  • Computer science
  • Statistic
  • Artificial intelligence
  • Machine learning
  • Simple (philosophy)
  • Value (mathematics)
  • Function (biology)
UN Sustainable Development Goals
  • Quality Education
No related works found for this paper.