Date 2026-06-30
Track AI Algorithms Curriculum
Type Lesson
Learning Objective Classify a point by looking at the labels of its nearest examples under a chosen distance metric.
machine-learningclassificationdistanceknn

k-Nearest Neighbors (k-NN)

Classify a point by looking at the labels of its nearest examples under a chosen distance metric.

Math Foundation

Distance metrics such as euclidean, manhattan, and cosine distance.

Key Concepts

Practice Path

Checkpoint

Why is k-NN sensitive to feature scaling, and what happens when k is too small or too large?

Archive Note

This card is backfilled from Sensei's public 30 AI Algorithms curriculum and the learning-progress signal that this algorithm had been delivered. Private progress, engagement analytics, delivery metadata, and local filesystem paths were intentionally excluded.

Prerequisites: support-vector-machine