Skip to main content

Contingency Space

Abstract.

In Machine Learning, a supervised model's performance is measured using the verification metrics. In this study, we first present our motivation by revisiting the major limitations of these metrics, namely one-dimensionality, lack of context, lack of intuitiveness, uncomparability, binary restriction, and uncustomizability of metrics. In response, we propose Contingency Space, a bounded semimetric space that provides a generic representation for any performance verification metric. Then we showcase how this space addresses the limitations. In this space, each metric forms a surface using which we visually compare different verification metrics. Taking advantage of the fact that a metric's surface warps proportional to the degree of which it is sensitive to the class-imbalance ratio of data, we introduce Imbalance Sensitivity that quantifies the skew-sensitivity. Since an arbitrary model is represented in this space by a single point, we introduce Learning Path for qualitative and quantitative analyses of the training process. Using the semimetric that contingency space is endowed with, we introduce Tau as a new cost sensitive and Imbalance Agnostic metric. Lastly, we show that contingency space addresses multi-class problems as well. Throughout this work we define each concept through stipulated definitions and present every application with practical examples and visualizations.

How To Use.

Metadata.

  • Python 3.12.5
  • Tested on Ubuntu 20.04.2 LTS
  • Utilized libraries are listed in ./requirements.txt.

Metadata

Release files for contingency-space 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contingency-space 0.1.9
File Size Uploaded Provenance Actions
contingency_space-0.1.9.tar.gz 7.7 MB Without provenance Details for contingency_space-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contingency-space 0.1.9
File Interpreter ABI Platform Actions
contingency_space-0.1.9-py3-none-any.whl Python 3 none any Details for contingency_space-0.1.9-py3-none-any.whl

Total release size: 7.8 MB

Release files / contingency_space-0.1.9.tar.gz

Download URL contingency_space-0.1.9.tar.gz
Size 7.7 MB
Tags Source
SHA-256 checksum
How to use checksums
f79f1788ace3fa48b2d4d175690613c99a75257d5b3a480e577e5798d3b1db74
BLAKE2b-256 checksum
How to use checksums
48a16a8dd25f859272eb05fe38d2e3f39fb69a672316836a9c1e2e27d139574b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Release files / contingency_space-0.1.9-py3-none-any.whl

Download URL contingency_space-0.1.9-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37b7a709a860f27d746c1801dead173073ccd2b0a0f90d22088e53591e81ae26
BLAKE2b-256 checksum
How to use checksums
4a21a27fbf9da90027d42229cde17fbaaaafddc2094ff54126d4cd982d25ac2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.5

Security for contingency-space 0.1.9

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.

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