KNN (k-Nearest Neighbors)

Classifies a new data point by finding a fixed number (k) of nearest neighboring data points from the training set.

  • For classification the majority label is used as the class
  • For regression the average of the values is used as the value