A toolkit to calibrate predictive algorithms to achieve risk control.
Project description
Risk Control Project (mlrisko)
mlrisko (MLRiskControl) is a comprehensive toolkit for implementing risk control mechanisms for predictive algorithms based on the paper "Learn then test: Calibrating predictive algorithms to achieve risk control" by Angelopoulos et al. (2025).
The primary goal is to ensure that machine learning algorithms perform reliably and maintain a controlled level of risk through advanced calibration techniques.
Installation
To install the necessary dependencies, run:
uv sync
uv pip install -e .
For development purposes, you can install the development dependencies with:
uv sync --all-groups
Running the Example
To run the example, execute the following command:
uv run python examples/plot_regression.py
uv run python examples/plot_classification.py
uv run python examples/plot_classification_bis.py
Documentation
For detailed documentation, refer to the docs.
Or you can build the documentation with:
uv run mkdocs serve
License
This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.
References
Angelopoulos, A. N., Bates, S., Candès, E. J., Jordan, M. I., & Lei, L. (2025). Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2), 1641-1662.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlrisko-0.1.0.tar.gz.
File metadata
- Download URL: mlrisko-0.1.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58869d6041cf06113f3a8e31fa0bff44e90e251c15e346ebf1c6a28f4e9c9b2d
|
|
| MD5 |
8754a5d41c4f839be7adcd098b8471f0
|
|
| BLAKE2b-256 |
b919f944f7fc6ef477c82da368584c6356b1e94ff9969585907d483388252ec3
|
File details
Details for the file mlrisko-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlrisko-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b469e3ba727e5e47964b1390f13e525abf4bb1cdd3f18e1017207754e6d84ba4
|
|
| MD5 |
9d21797ba035191eea9a5a3cf098a05d
|
|
| BLAKE2b-256 |
9e101e7b11f0d5449635256c31ae8c1ad893e5196d5bd636a8fe2332fcff4eb5
|