Gradient LabSign up free

ML glossary › Dot product

What is dot product in machine learning?

Multiply matching numbers in two lists and add them up. Big means “similar”.

Where it shows up

Math toolkit

Dot products and matrices

Take two vectors of the same length: a = [2, 1, 3] and b = [1, 2, 1]. The dot product turns them into one number.

See dot product in motion. The lesson animates it step by step, free.

Open the lesson

Related terms