NumPy · Lesson 5.2 · Pro

Distances and similarity

Measure how far apart or how alike two points are, find the nearest one, and build a distance table.

In this lesson

  1. Distance between two points
  2. Nearest neighbour
  3. Every pair at once
  4. Cosine similarity