Skip to main content

Risk Control Project (mlrisko)

CI/CD Pipeline Code Coverage Python 3.9+ License: BSD-3-Clause PyPI version Documentation Code style: ruff Linting: ruff Type checking: mypy

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)

Source distribution for mlrisko 0.1.0
File Size Uploaded
mlrisko-0.1.0.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlrisko 0.1.0
File Interpreter ABI Platform
mlrisko-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page