Chapter 10: K-nearest neighbors

KNN—classification and regression:

  • Classification = categorization into a group

  • Regression = predicting a response (like a number)

Cosine similarity

  • Cosine similarity doesn’t measure the distance between two vectors.

  • Instead, it compares the angles of the two vectors.

Last updated

Was this helpful?