Skip to content

Machine Learning from Scratch

Classical machine learning in Python, from numpy and pandas to models you can train, evaluate, tune and explain.

Basic19 modules217 lessons38 exercises≈ 15 h

Tests check every exercise: in your browser and in the cloud

Exercises run in the browser, so you need nothing installed to take the course. To run lesson code and exercises on your own computer, set it up in four steps.

  1. Install Python 3.12

    You need exactly 3.12: the library versions the site runs have ready-made builds for it. Download the installer for your system from python.org.

  2. Install VS Code

    Download VS Code and add the Python extension from Microsoft.

  3. Create an environment and install the libraries

    Open a folder for the course in VS Code and create a virtual environment in it. Install the versions the site runs, so your output matches the lessons: numpy 1.26, pandas 2.2, scikit-learn 1.4 and pytest.

  4. Run lesson code and exercises

    Save a lesson's code to a file and run it with the ▶ button. For an exercise, save both editor tabs under their names and run the tests from the Testing panel.

Syllabus