Module 2 · Lesson 5 of 59/56 in the course~16 min
Module lessons (5/5)
Linear algebra, just enough
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 2 — Toolkit: numpy, statistics and pandas
Vectors, dot products, matrix-vector products and shapes.
What you'll learn in this lesson
- Read a vector as a list of numbers and as an arrow.
- Compute and interpret a dot product.
- Multiply a matrix by a vector and predict the resulting shape.
Overview
Almost every model you will meet, from linear regression to neural networks, boils down to multiplying feature vectors by weights and adding the results. You only need a few ideas from linear algebra to read that without fear.
A vector is an ordered list of numbers. In machine learning a vector can be one sample (its features) or a set of weights. Geometrically, a 2-D vector is an arrow from the origin.
Sections covered in this lesson
- 1The hook: models are lots of multiplications
- 2Vectors
- 3The dot product
- 4Matrices and shapes
- 5Practice
- 6Check your understanding
Pro Lesson · Module 2 — Toolkit: numpy, statistics and pandas
Unlock "Linear algebra, just enough" and the full Machine Learning: from first principles to practice curriculum
Vectors, dot products, matrix-vector products and shapes.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.