Vectors, Magnitude & Unit Vectors

The objects every model computes with

30 min · interactive lesson with runnable code and 4 graded exercises.

What you'll be able to do

  • Treat a feature list as a vector and combine vectors linearly
  • Compute the L2 magnitude by hand and with NumPy
  • Normalize to a unit vector — and know when you can't
  • Name rows vs columns of a data matrix precisely

The full lesson is free with an account.

What a vector is

Addition, scaling, linear combinations

L2 magnitude

Unit vectors

Notation in ML