Tools 1.6Lesson outlineLesson 6 of 7 in Module 1
Linear Algebra in NumPy
Write the maths of the ML videos directly as code.
Free sample. Everything in this module opens with a free account.Video in production.
Lesson outline: Linear Algebra in NumPy
In this lesson10 parts
- 01The feature matrix, and one prediction by hand
- 02The same prediction in a Python loop over every row
- 03X at w: the matrix product, every row at once
- 04Star is element wise, and at is the matrix product
- 05Transpose with dot T, and the two pieces the solve needs
- 06A one dimensional array has no orientation, and the None index
- 07The normal equations, and np dot linalg dot solve
- 08Why not np dot linalg dot inv: the condition number, and lstsq
- 09Checking the weights against scikit-learn
- 10Recap and your challenge
Builds on
This lesson stands on its own. These go deeper into what it uses.
- Maths Module 3
Key terms: Linear Algebra in NumPy
The words this lesson introduces, each in one line. The module’s glossary collects them all, and the AI glossary has every term across the courses.
- Transpose
- Exchange axes of a two-dimensional array
- Matrix product
- Row-column combination written
@ - Linear system
- Equations represented as
A @ w = b
Quiz: Linear Algebra in NumPy
Your first pick on each question is the one that counts. Getting one wrong here is how the lesson sticks.