Tools 1.6
Linear Algebra in NumPy
Write the maths of the ML videos directly as code.
The lesson, part by part- The feature matrix, and one prediction by hand
- The same prediction in a Python loop over every row
- X at w: the matrix product, every row at once
- Star is element wise, and at is the matrix product
- Transpose with dot T, and the two pieces the solve needs
- A one dimensional array has no orientation, and the None index
- The normal equations, and np dot linalg dot solve
- Why not np dot linalg dot inv: the condition number, and lstsq
- Checking the weights against scikit-learn
- Recap and your challenge
Key term · Matrix productRow-column combination written @
- A 5-question quiz, marked the moment you answer
- Practice at levels A to C, with values to check against
- Where the idea is used in real work
- 4 notebooks to run the examples yourself
- 22 interview questions with model answers
- The module project: The chain's year, in NumPy, set with no template