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.
-
Use the notebooks under ./notebooks/ to explore some of the main functionalities.
-
All metrics are available under ./metrics/.
-
One of the notebooks (./notebooks/cnn_learning_path_on_MNIST.ipynb) requires the data of the learning paths. The data is pickled and available under ./pickled_data/.
Metadata.
- Python 3.12.5
- Tested on Ubuntu 20.04.2 LTS
- Utilized libraries are listed in ./requirements.txt.
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
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 contingency_space-0.1.3.tar.gz.
File metadata
- Download URL: contingency_space-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0dacf626c69606c84142c4a83c99160af574fb6ce1b4cc201b0584505412ca8
|
|
| MD5 |
51d7ebc32b41fb25b460ab6fa4f8d429
|
|
| BLAKE2b-256 |
1ec7f8ca273bcff5d26723e97ff977a907114e98f3274a3a8d3779087a3282a1
|
File details
Details for the file contingency_space-0.1.3-py3-none-any.whl.
File metadata
- Download URL: contingency_space-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fd71cee22c3f014588f0d1163ac70c720d2bf6b3abd343ec7e85e1a89c51b6e
|
|
| MD5 |
9fa04dd1e568a909841767243fcf385e
|
|
| BLAKE2b-256 |
d4d0e494df0bb766351822781c4cc8656eb93bbc4880723d31953e8d424d91d0
|