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.
Metadata
Release files for mlrisko 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlrisko-0.1.0.tar.gz | 17.3 kB | Without provenance | Details for mlrisko-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlrisko-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mlrisko-0.1.0-py3-none-any.whl |
Total release size: 39.2 kB
Release files / mlrisko-0.1.0.tar.gz
| Download URL | mlrisko-0.1.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58869d6041cf06113f3a8e31fa0bff44e90e251c15e346ebf1c6a28f4e9c9b2d
|
|
BLAKE2b-256 checksum How to use checksums |
b919f944f7fc6ef477c82da368584c6356b1e94ff9969585907d483388252ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Release files / mlrisko-0.1.0-py3-none-any.whl
| Download URL | mlrisko-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b469e3ba727e5e47964b1390f13e525abf4bb1cdd3f18e1017207754e6d84ba4
|
|
BLAKE2b-256 checksum How to use checksums |
9e101e7b11f0d5449635256c31ae8c1ad893e5196d5bd636a8fe2332fcff4eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Security for mlrisko 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.