SchoolWhool
Quizzes and saved progress, freeSign in freeSign in

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

  1. 01The feature matrix, and one prediction by hand
  2. 02The same prediction in a Python loop over every row
  3. 03X at w: the matrix product, every row at once
  4. 04Star is element wise, and at is the matrix product
  5. 05Transpose with dot T, and the two pieces the solve needs
  6. 06A one dimensional array has no orientation, and the None index
  7. 07The normal equations, and np dot linalg dot solve
  8. 08Why not np dot linalg dot inv: the condition number, and lstsq
  9. 09Checking the weights against scikit-learn
  10. 10Recap and your challenge

Builds on

This lesson stands on its own. These go deeper into what it uses.

  • Maths Module 3