-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.qmd
More file actions
138 lines (100 loc) · 3.34 KB
/
Copy pathindex.qmd
File metadata and controls
138 lines (100 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
title: "Skrub - machine learning with dataframes"
author: "Riccardo Cappuzzo"
---
This website hosts the material used for teaching how to use
the [skrub package](https://skrub-data.org/stable/): it contains all the material
used for the course, including the datasets and exercises used during the session.
Choose your learning format:
::: {.grid}
::: {.g-col-6}
## 📖 Book Format
Complete course material in book format with detailed explanations. The book
includes more detail that isn't covered in the slides.
[Access the Book →](book/index.html){.btn .btn-primary}
:::
::: {.g-col-6}
## 🎯 Presentation Slides
Slide-based presentation for instructor-led sessions.
[View Slides →](slides/index.html){.btn .btn-primary}
:::
:::
## 💻 Interactive Exercises
Try the exercises in your browser with JupyterLite (no installation required).
[Launch JupyterLite →](jupyterlite/lab/){.btn .btn-success}
If you want to run the code locally, refer to the [Preparation and setup](#prepration-and-setup)
section for detailed instructions.
## Contacts
If you have questions, contact me at `riccardo[dot]cappuzzo[at]inria.fr`
## Structure of the course
The course covers the main features of skrub, from data exploration to pipeline
construction, with a short discussion about 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`.
# Prepration and setup
First of all, clone the [GitHub repo](https://github.com/skrub-data/skrub-tutorials/tree/main)
of this book to have access to the exercises. In a future version, Jupyterlite
support will be added.
## Setting up a local environment
::: {.callout-important}
## Navigating 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 `pip`
Create the and activate the environment:
```sh
python -m venv skrub-tutorial
source skrub-tutorial/bin/activate
```
Install the required dependencies using the `requirements.txt` file:
```sh
pip install -r requirements.txt
```
Start the Jupyter lab instance:
```sh
jupyter lab
```
### Using conda
An `environment.yaml` file is provided to create a conda environment.
Create and activate the environment with
```sh
conda env create -f environment.yaml
conda activate skrub-tutorial
```
Then, start a jupyter lab instance:
```sh
jupyter lab
```
### Using `uv`
Create the environment using `pyproject.toml` as the requirement file.
```sh
uv venv
uv pip install -r pyproject.toml
```
Activate the environment that was created in the folder.
```sh
source .venv/bin/activate
```
Start the Jupyter lab instance:
```sh
jupyter lab
```
### Using pixi
Follow the platform-specific
instructions in the link to install [pixi](https://pixi.sh/latest/installation/),
then open a terminal window in the folder of the repository you cloned.
Run
```sh
pixi install
```
to create the environment, followed by
```sh
pixi run lab
```
to start a Jupyter lab instance.