Prevalence-independent intrinsic kappa coefficient for classification systems with any number of categories.
Project description
intrinsic-kappa
A Python library for computing the prevalence-independent intrinsic kappa coefficient and its one-sided confidence lower bounds for classification systems with any number of categories (NC ≥ 2).
Background
Traditional Cohen's kappa depends on class prevalence — the proportion of instances in each category — which can produce misleading performance estimates when a dataset is imbalanced. The intrinsic kappa solves this by anchoring the chance-agreement term exclusively to the number of categories (1/NC), providing a robust and stable measure of a classifier's inherent discriminatory ability, regardless of sample composition.
This package is based on the methodology published in:
Sanchez-Marquez, R. et al. (2025). A statistical approach to the confusion matrix for classification problems using machine learning. Computers & Industrial Engineering.
Installation
pip install intrinsic-kappa
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 intrinsic_kappa-0.1.1.tar.gz.
File metadata
- Download URL: intrinsic_kappa-0.1.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4918d2b75bdce469ee30032427ac4056a18c576899a72ceed09d036e927b4d3c
|
|
| MD5 |
54ab14dbcf7d0060cf30835e0689f4c1
|
|
| BLAKE2b-256 |
1b84f9faef0828857a759130a278f76afa57df3c8e21bdaa1757a7cc1bde56cd
|
File details
Details for the file intrinsic_kappa-0.1.1-py3-none-any.whl.
File metadata
- Download URL: intrinsic_kappa-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
412705beb1d5969dad1542858a2567b740fc7318aa5782454c6c6f6f31e3d266
|
|
| MD5 |
fcff75ad0efc640f8766a14c22e04dd3
|
|
| BLAKE2b-256 |
1058dd7be049fe3e29c6ef9dfcddf0cd2de76ab1a299b59cfc929cfe36862001
|