# Distance Between Examples

Two examples become points when each feature is a direction, the straight-line (Euclidean) distance between them comes from the Pythagorean theorem and math.dist works it out for any number of features, and a feature measured in big units, like grams, swamps one scored from 0 to 10 until the features are put on a common scale.

![Cheat sheet: Distance Between Examples](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/4f3383f38cff45c0a9d906cb16bd0893.webp)

- Category: Machine Learning
- Level: Apprentice
- Tags: ai, Euclidean Distance, Feature (ai), Feature Scaling, Pythagorean Theorem, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-distance-between-examples-cheat-sheet
