AI engineering glossary · Classical ML algorithms

What is manhattan distance?

Manhattan distance: The distance between two points measured by summing the absolute differences of their coordinates, like walking along city blocks. It is less affected by a single large difference than straight-line distance and is used in neighbour and clustering methods.

Level: beginnerTopic: Classical ML algorithms

Manhattan distance: an example

Between (1, 2) and (4, 6) it is |4-1| + |6-2| = 7.

Related terms

More Classical ML algorithms terms

Where you learn it

Manhattan distance is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.