Uncertainty quantification metrics for model evaluation
Project description
uq-metrics
Uncertainty quantification metrics for model evaluation. Pure NumPy implementation.
Installation
pip install uq-metrics
For plotting support:
pip install uq-metrics[plot]
Usage
from uq_metrics import auroc, ece, brier_score, aurc
import numpy as np
y_true = np.array([0, 0, 1, 1, 1])
y_scores = np.array([0.2, 0.3, 0.6, 0.8, 0.9])
auroc(y_true, y_scores) # Area Under ROC Curve
ece(y_true, y_scores) # Expected Calibration Error
brier_score(y_true, y_scores) # Brier Score
# With plotting
score, ax = auroc(y_true, y_scores, plot=True)
Available Metrics
auroc- Area Under ROC Curveece- Expected Calibration Errorbrier_score- Brier Scoreaurc- Area Under Risk-Coverage Curveerror_vs_abstention- Error rates at abstention levelsoptimal_abstention- Find optimal abstention threshold
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
uq_metrics-0.1.0.tar.gz
(8.0 kB
view details)
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 uq_metrics-0.1.0.tar.gz.
File metadata
- Download URL: uq_metrics-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c798df14844d94d19748edd0ce4879180746b7445af8f40a390eace00116f52
|
|
| MD5 |
bc55455d5bc16b5b2790f033f6ed1fc5
|
|
| BLAKE2b-256 |
6f3cd77ca983f192422b1bbd5c30faf06a28ada65931f5de7e83f5d88bce69e0
|
File details
Details for the file uq_metrics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uq_metrics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ca88a7c86f5d631ad6be34047f720cda6913557f092284c2111ef84096b41d
|
|
| MD5 |
7412ab17359887a94c2e53ce84e5c2b6
|
|
| BLAKE2b-256 |
692527fb7ce0463981c369b70113029007cf0eb24a99c8301e15c649f5b89b40
|