Skip to main content

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

Metadata

Release files for intrinsic-kappa 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intrinsic-kappa 0.1.2
File Size Uploaded Provenance Actions
intrinsic_kappa-0.1.2.tar.gz 13.5 kB Without provenance Details for intrinsic_kappa-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for intrinsic-kappa 0.1.2
File Interpreter ABI Platform Actions
intrinsic_kappa-0.1.2-py3-none-any.whl Python 3 none any Details for intrinsic_kappa-0.1.2-py3-none-any.whl

Total release size: 21.4 kB

Release files / intrinsic_kappa-0.1.2.tar.gz

Download URL intrinsic_kappa-0.1.2.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a16aadde2ef6ca1ff6366e07e610e5e6ac3101d7fc2d9f24cc9ab62f8da6251
BLAKE2b-256 checksum
How to use checksums
a4e9694817e27da0cf825c2d371f6b36a3b11a98187bd8db522179c07a4a1a43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / intrinsic_kappa-0.1.2-py3-none-any.whl

Download URL intrinsic_kappa-0.1.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcde9cf9be715eb5a1fc21430fd29fd4adc7e0ee2c48097b01a79b9686569d98
BLAKE2b-256 checksum
How to use checksums
fe8266785821915801f16d65f7900b0a10c651d62c45adb5b73ec6909af9cf0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for intrinsic-kappa 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page