Skip to main content

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., & Jabaloyes Vivas, J. (2026). A statistical approach to the confusion matrix for classification problems using machine learning. Neurocomputing, 133962. ISSN 0925-2312. https://doi.org/10.1016/j.neucom.2026.133962

Installation

pip install intrinsic-kappa

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

intrinsic_kappa-0.1.2.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

intrinsic_kappa-0.1.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file intrinsic_kappa-0.1.2.tar.gz.

File metadata

  • Download URL: intrinsic_kappa-0.1.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for intrinsic_kappa-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6a16aadde2ef6ca1ff6366e07e610e5e6ac3101d7fc2d9f24cc9ab62f8da6251
MD5 be1a9a7eae3c8934d92f5645f68ed148
BLAKE2b-256 a4e9694817e27da0cf825c2d371f6b36a3b11a98187bd8db522179c07a4a1a43

See more details on using hashes here.

File details

Details for the file intrinsic_kappa-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for intrinsic_kappa-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcde9cf9be715eb5a1fc21430fd29fd4adc7e0ee2c48097b01a79b9686569d98
MD5 34eda757f9c7565d7dcbca0c55f105cf
BLAKE2b-256 fe8266785821915801f16d65f7900b0a10c651d62c45adb5b73ec6909af9cf0b

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