Skip to content

This repository contains the notebooks and related materials for the master class "Uncertainty Quantification".

Notifications You must be signed in to change notification settings

deel-ai/uq-masterclass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Welcome to the Uncertainty Quantification DEEL Master Class !

Predictive uncertainty quantification in machine learning aims to assess the predictive error of models as precisely as possible, and in some cases, to calibrate this error according to specific statistical targets. Among various approaches, Conformal Prediction stands out due to its strong theoretical properties and ease of implementation and integration in production environments.

This repository gathers materials from DEEL master class to acquire theoretical and practical knowledge about uncertainty quantification, and more specifically conformal prediction. Through these resources, you'll understand the key concepts, learn to apply them using PUNCC library across various examples, and develop the skills to interpret results and select suitable algorithms for real-world applications.

👨‍🎓 Tutorial Notebooks

This repository contains the tutorial notebooks for the following topics:

You can either work locally by cloning the project or open the notebooks following the colab links.

🐾 Installation

To get started with this tutorial, you have two options:

Option 1: Using Google Colab (Recommended)

If you have access to Google Colab, you can run this project directly in your web browser without needing to install anything locally.

  1. Sign in to Google Colab: Ensure you have a Google account to sign in.
  2. Open the Colab Notebook: Open the Colab notebook links (see below).
  3. Install Dependencies in Colab: The notebook will install all required packages in Colab’s environment.

This option is ideal if Colab is accessible to you.

Option 2: Local Installation (If Colab Access is Unavailable)

If access to Google Colab is restricted or unavailable, follow these steps to install the project locally:

  1. Clone the repository:
git clone https://github.com/deel-ai/uq-masterclass.git
cd uq-masterclass
  1. Create a virtual environment:
python -m virtualenv venv-masterclass
  1. Activate the virtual environment:

    • On windows:
    venv-masterclass\Scripts\activate
    • On macOS/Linux:
    source venv-masterclass/bin/activate
  2. Install the required packages:

pip install -r requirements.txt
  1. Add the virtual environment to Jupyter as a new kernel:
python -m ipykernel install --user --name=venv-masterclass"
  1. Launch Jupyter Notebook:
jupyter notebook

In Jupyter, you can select the newly created kernel Python (venv-masterclass) from the kernel options.

📖 Completed Notebooks

If you want to check your work, you can find all solutions in the "completed_notebooks" folder. Each file in this folder corresponds to the respective tutorial notebook. Feel free to review these solutions as you progress through the exercises.

🔗 Links

🙏 Acknowledgments

This project received funding from the French ”Investing for the Future – PIA3” program within the Artificial and Natural Intelligence Toulouse Institute (ANITI). The authors gratefully acknowledge the support of the DEEL project.