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. 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


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.0.tar.gz (13.1 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.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: intrinsic_kappa-0.1.0.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

Hashes for intrinsic_kappa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7d51ae856bfd08d55bf25881371eff4ed2b4b45efa94abd3038959731e817e9
MD5 31637261844a005506945cf105f385e5
BLAKE2b-256 dd5743d0b3ab9e5104ed3e130b53003c3b1151ccc09f84609babc5487565275b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for intrinsic_kappa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65df5b5dbeddb56cc90e30be7bba7227ee0a6c6dca11d404c24aa5a3f5511cac
MD5 ae96798c3e84b75dd86624642a51a292
BLAKE2b-256 3ccb125994228d7424e3d7eda3743fa74dd65097b7af8e14cc89afe25e1932f9

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