aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← Machine Learning learning path
12
Supervised learning

Nearest-Neighbor & Probabilistic Methods

Predicting from similar examples, and classifying with Bayes' theorem.

4 lessons~34 min2 formulas5 questions
0%
Not started yet
Quiz mastery0%
Start
What you’ll take away
  • k-NN predicts from the k closest training points; k controls smoothness.
  • Scale features before any distance-based method.
  • Naïve Bayes assumes conditional independence and still classifies surprisingly well.
  • Probabilistic classifiers pick the class with the highest posterior.
Major concepts (syllabus)

k-NN, distance measures, Naïve Bayes, probabilistic classification

Lessons

  1. k-Nearest NeighborsVote (or average) among the k closest training points.9 min
  2. Distance measures for k-NNManhattan, Euclidean and others, and why features must be scaled.8 min
  3. Naïve BayesBayes' theorem with conditionally independent features.9 min
  4. Probabilistic classificationChoosing the class with the highest posterior probability.8 min

Key formulas

k-NN prediction

Majority vote among the k nearest neighbours.

Naïve Bayes

Prior × product of per-feature likelihoods.

Key terms

k-NN
Predicting from the labels of the k nearest training points.
Naïve Bayes
Classifier applying Bayes' theorem with conditionally independent features.
Full glossary →
Practice this topic5 questions · earn XP and build your streak
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser