Skip to main content

A package for creating and analyzing contingency spaces.

Project description

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.

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

contingency_space-0.1.4.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

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

contingency_space-0.1.4-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file contingency_space-0.1.4.tar.gz.

File metadata

  • Download URL: contingency_space-0.1.4.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for contingency_space-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5f09b795b4e535d13f6a5b072a001e91a0556d3bdf2c13473270e598456209d6
MD5 8e4e3b2f14c4e6ac52f5ab0eb516a88a
BLAKE2b-256 449243a7e93f891d2d47c9d2c3ee22bce737e4e097f6770ff55e83aa482ac631

See more details on using hashes here.

File details

Details for the file contingency_space-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for contingency_space-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e90c3165925a675e9ea15c575c6fcbaf9c9134f9daa080f1af078e5b7ca4258
MD5 7f098dc22893b3503322ca56518e4cf8
BLAKE2b-256 dda275b6459432013e7575b5ad81d3f8b43438adc8a1388743e16d76da0267a6

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