Skip to main content

testAUC is a library of tools to evaluate the true performance of ML/AI models

Project description

testAUC

Examples of the limitations of ROC AUC on a test set

Example 0: example0.py

Demonstrates how two very different predictions can result in the exact same ROC curve.

Example0

Example 1: example1.py

Demonstrates the shifting of the operation point, despite the favourable AUC. We show predictions of a (simulated) model on the Validation set and the Test set. The ROC AUC "happens" to be identical. However, if you choose a threshold on the Validation set, aiming for a Sensitivity/Specificity operation point, you would get completely different operation point on the Test set

Example1

Example 2: example2.py

Demonstrates a measure of robustness to noise. We show two models, Initially it seems that Model 1 is far better, offering ROC AUC above 91% However, evaluating the robustness to uniform noise shows Model 2 is more robust

Example2

Example 3: example3.py

Demonstrates a measure of DRIFT between the validation set and the test set We show two models, both of them "happen" to have the exact same AUC on the validation and test sets. However, evaluating the DRIFT of the Sensitivity/Specificity operation point reveals that Model 1 is better (although in this extreme case, both models exhibit significant drifts)

Note that at some operation point, Model 2 actually exceeds a drift of -50% from the Sensitivity expected at Validation time, compared to the Sensitivity received at test time - without affecting the total AUC.

Example3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testauc-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testauc-0.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file testauc-0.0.2.tar.gz.

File metadata

  • Download URL: testauc-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for testauc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 de4dd9cce174b18d70c5f1fdab0160cafd01ae5f6995f2849f1d882dea64b977
MD5 5b5466d2288db5291a81739a94e3a027
BLAKE2b-256 86bfdfa64462b9d210ae01aa84e55ed060ae1a3ca03873f8ae89822ed128ec68

See more details on using hashes here.

File details

Details for the file testauc-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: testauc-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for testauc-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d98c06e8367e16d9df93801625463ff83846b8306428dce2ca668097cd4402ef
MD5 22e02b400e0441166fdf1c82009dc17f
BLAKE2b-256 487de4a727db80f45042ae186cb401ed3a312d66fafe940648d0e83e6aef01b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page