testAUC
Official implementation of the tools discussed in The curious case of the test set AUROC
It is a set of tools designed for better evaluation of Binary Classification tasks in ML and AI. Specifically dealing with the expected performance of the model on new data.
Quick start
pip install testAUC
For and all-in-one view of the toolset, use the dashboad() function:
from testAUC import faux_normal_predictions, dashboard
# Simulate a model, evaluated on a Validation set and a Test set:
y_true_val, y_score_val = faux_normal_predictions(neg_mu=0.3, pos_mu=0.8, seed=2023)
y_true_tst, y_score_tst = faux_normal_predictions(std=0.5, neg_mu=0.4, pos_mu=0.9, seed=2023)
# All in one Dashboard to evaluate the Validation vs. Test sets performance
dashboard(y_true_val, y_score_val, y_true_tst, y_score_tst)
roc_drift, val_tst_colored_roc_curve, colored_roc_curve,dashboard noise_robustness, bias_robustness, plot_noise_robustness, plot_bias_robustness plot_wasserstein_distance_matrix, plot_predictions_hist
Mini-documentation of functions:
- dashboard() -> An All-In-One dashboard to evaluate the test performance (good place to start!)
- roc_drift() -> Calculate the ROC drift from validation to test sets
- noise_robustness() -> Calculate the robustness of the predictions to normal noise
- plot_noise_robustness() -> uses the noise_robustness to generate a plot
- bias_robustness() -> Calculate the robustness of the predictions to bias between the classes
- plot_bias_robustness() -> uses the bias_robustness to generate a plot
- plot_wasserstein_distance_matrix() -> See paper to understand the importance of the matrix
- colored_roc_curve() -> Plot an ROC curve that is color coded by threshold
- val_tst_colored_roc_curve() -> Same colored ROC curve but for both val&tst sets (sharing color limits!)
- faux_normal_predictions() -> A small utility function to create fake model predictions
- plot_predictions_hist() -> Plot a histogram of predictions for the Positive and Negative classes
Metadata
Release files for testAUC 1.2.1
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 | |
|---|---|---|---|---|
| testauc-1.2.1.tar.gz | 9.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| testauc-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / testauc-1.2.1.tar.gz
| Download URL | testauc-1.2.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51e7c0f793078a49280c2ae437bcf35dcaed351cda5245a9c6318726771c722c
|
|
BLAKE2b-256 checksum How to use checksums |
3853cfbb9f295f34c5a2e815f6ba984f97464e6a1b5fc197b3aeb225e74138ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.
Transparency logRelease files / testauc-1.2.1-py3-none-any.whl
| Download URL | testauc-1.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b941233b874e7ccc033c22f9967ce9a466b1342ec351d363a6f8ab4883e96c0
|
|
BLAKE2b-256 checksum How to use checksums |
3e852d18b811d833625af404e493b9f7e2706dd8d09768659f6f82030837ea96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.
Transparency logSecurity for testAUC 1.2.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for testauc-1.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.
Transparency logA 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.