KnearestneighborsKlassifikation
K-nearest neighbors (KNN) is a simple, instance-based supervised learning algorithm used for classification and regression. For a new observation, KNN identifies the k training samples closest to it in feature space and assigns a label (classification) or a value (regression) based on those neighbors.
The method requires choosing a number k and a distance metric, commonly Euclidean, Manhattan, or Minkowski.
KNN is lazy and instance-based, meaning it defers computation until prediction and stores the full training
Practical considerations include feature scaling, choosing k via cross-validation, and selecting a distance metric. High dimensionality