Skip to content
English

Switch theme

// 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

02Read on this site

03Algorithms to master

Each card has the original paper, prerequisites and resources.

04Must-read papers

05Courses & videos

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. 1
    Kaggle Learn:Python ↗Exercises

    Finish all exercises of the Python course, run right in the browser.

  2. 2
    rougier/numpy-100 ↗Exercises

    Do the first 50 NumPy exercises to get fluent with vectorisation and broadcasting.

  3. 3
    colab.research.google.com ↗Tools

    Use free Colab notebooks for every exercise – no local setup.

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

Data updated: AI algorithms & curriculum(UTC+8)