When people say “vector,” most beginners think “array of numbers.” That intuition is wrong. A vector is an arrow in space: it has direction and length. Imagine standing in the center of a city. “Three blocks north and two east” is a vector. In ML, every object (customer, photo, word) becomes such an arrow in a high-dimensional feature space, and the model learns to tell these arrows apart.
The norm of a vector is its “length.” But length can be measured in different ways. L2 (Euclidean) is the straight line from the tail to the tip: . L1 (Manhattan) is moving on a grid, only along axes: . Click each metric below to see the difference visually.
The dot product measures how much two vectors point in the same direction. If the angle between them is small, the product is large and positive. If they are perpendicular — zero. If they point opposite ways — negative. Drag vector B with the mouse and watch how the result changes.
Each neuron does exactly one thing: it computes the dot product of the input vector with the weight vector. Then the activation decides whether the neuron “fires.” That's why understanding vectors isn't abstract math — it's the basis for how any neural network works.