internalsGet Pro

Module 03 · Lesson 9 of 12Pro

SVD: breaking a matrix into simple parts

Level
Advanced
Topic
Linear algebra for machine learning
Reading time
18 min

When you finish this page you can

  1. Read any matrix as a turn, a stretch along right-angled axes, and a second turn, and find its singular values.
  2. Run np.linalg.svd with full_matrices=False and read the shapes and order of U, S and Vh.
  3. Keep the top k singular values to build a low-rank approximation, and work out its error and memory.
  4. Choose between a full SVD and a truncated solver for a large sparse customer × product table.

Builds on 4 lessons

Start with lesson 313 min
  1. Matrices as transformations of space13 min
  2. Matrix multiplication in practice14 min
  3. Rank: spotting redundant features16 min
  4. Eigenvectors: the natural axes of a matrix16 min

An 80 GB table that is almost all zeros

is our example online store. Joseph’s growth team wants a “You may also like” row for every customer. Farah, an ML engineer, has to predict which products each customer is likely to buy next.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan