// Stage 1 · Math & Programming Foundations
Python, NumPy & Tooling
Read and write Python, vectorise with NumPy, use the command line, Git and Jupyter.
about 12 hours2 algorithms1 paperslesson text ready
01Goals
- Python basics and common data structures
- Matrix operations and broadcasting with NumPy
- Use Git, virtual environments and Jupyter/Colab
02Read on this site
03Algorithms to master
Each card has the original paper, prerequisites and resources.
04Must-read papers
- Array Programming with NumPy ↗2020 ✓ verified
05Courses & videos
- docs.python.org ↗Official docsMULTI
- numpy.org ↗Official docsEN
- MIT:The Missing Semester ↗CoursesMULTI
- kaggle.com ↗CoursesEN
06Hands-on: project, code & exercises
Free, official or author-published pages. Most run in the browser or on a free Colab GPU.
PROJECT
Without loops, use only NumPy to normalise a batch of images, multiply matrices and compute softmax; compare speed with a loop version.
- 1
- 2rougier/numpy-100 ↗Exercises
Do the first 50 NumPy exercises to get fluent with vectorisation and broadcasting.
- 3
07Self-test
Answer in your head, then open to check.
What is NumPy broadcasting?
Arrays of different shapes are expanded by rule and then computed element-wise.
Why use a virtual environment?
It isolates each project’s dependency versions so they don’t conflict.
Why is vectorised code faster than Python loops?
It runs in batched C/BLAS code and skips per-element interpreter overhead.
Array A has shape (32, 28, 28) and B has shape (28, 28). Does A - B work?
Yes. Compare from the last dimension: 28 vs 28 and 28 vs 28 match; B's missing leading dimension is treated as 1 and broadcast to 32.
On these routes: Application Developers · Algorithm Researchers · Domain Scientists