Inria Academy - skrub like a pro

Author

Riccardo Cappuzzo

This is the website for the Inria Academy course on the skrub package: it contains all the material used for the course, including the datasets and exercises used during the session.

Choose your learning format:

πŸ“– Book Format

Complete course material in book format with detailed explanations.

Access the Book β†’

🎯 Presentation Slides

Slide-based presentation for instructor-led sessions.

View Slides β†’

πŸ’» Interactive Exercises

Try the exercises in your browser with JupyterLite (no installation required).

Launch JupyterLite β†’

Structure of the course

The course covers the main features of skrub, from data exploration to pipeline construction, with the notable exclusion of the Data Ops.

Each chapter includes a section that describes how a specific feature may assist in building a machine learning pipeline, along with practical code examples.

Some chapters include exercises for participants to work with the explained features. These exercises are made available in content/exercises, as well as at the end of the respective lesson in content/notebooks.

The content of the book is split in sections, and each section includes a β€œfinal quiz” that covers the subjects covered up to that point.

Prepration and setup

First of all, clone the GitHub repo of this book to have access to the exercises. In a future version, Jupyterlite support will be added.

Setting up a local environment

ImportantNavigating the repository

Depending on how you launch the instance of Jupyter lab, you might start it in the root folder.

All notebooks used in the course are found in content/notebooks, while the exercises are in content/exercises.

Using pixi

The easiest way to set up the environment is by installing and using pixi. Follow the platform-specific instructions in the link to install pixi, then open a terminal window in the folder of the repository you cloned.

Run

pixi install

to create the environment, followed by

pixi run lab

to start a Jupyter lab instance.

Using pip

Create the and activate the environment:

python -m venv skrub-tutorial
source skrub-tutorial/bin/activate

Install the required dependencies using the requirements.txt file:

pip install -r requirements.txt

Start the Jupyter lab instance:

jupyter lab

Using conda

An environment.yaml file is provided to create a conda environment.

Create and activate the environment with

conda env create -f environment.yaml
conda activate skrub-tutorial

Then, start a jupyter lab instance:

jupyter lab

Using uv

Create the environment using pyproject.toml as the requirement file.

uv venv 
uv pip install -r pyproject.toml

Activate the environment that was created in the folder.

source .venv/bin/activate

Start the Jupyter lab instance:

jupyter lab