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.1.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.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for intrinsic_kappa-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4918d2b75bdce469ee30032427ac4056a18c576899a72ceed09d036e927b4d3c
MD5 54ab14dbcf7d0060cf30835e0689f4c1
BLAKE2b-256 1b84f9faef0828857a759130a278f76afa57df3c8e21bdaa1757a7cc1bde56cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for intrinsic_kappa-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 412705beb1d5969dad1542858a2567b740fc7318aa5782454c6c6f6f31e3d266
MD5 fcff75ad0efc640f8766a14c22e04dd3
BLAKE2b-256 1058dd7be049fe3e29c6ef9dfcddf0cd2de76ab1a299b59cfc929cfe36862001

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