A training-free, chance-corrected reliability library for continuous multi-object spatial annotations.
Project description
Kappa-IoU
This Python package implements the Kappa-IoU measure of Inter-annotator reliability from Rogers (2026):
Rogers, Trevor F. (2026). Kappa-IoU: Inter-Rater Reliability for Spatial Annotation
Large-scale annotation projects for which automated annotation solutions are insufficient require a metric that measures the quality of annotation between annotators. Intersection-over-Union, or IoU, is traditionally used for spatial data but requires a ground truth. Cohen's Kappa is a psychometric measure that measures the amount of agreement between raters, but is traditionally used for categorical data.
This repository contains a Python package implementing the Kappa-IoU paper, which indexes IoU with Cohen's Kappa, and handles differences in object cardinality between raters by treating it as a linear assignment problem using Kuhn-Munkres assignment. Also included is an adjusted version of Kappa-IoU that uses a version of the BLEU measure for machine translation which instead scores N-objects for multi-object annotation. Along with the Python package implementing this measure, this repository also contains Section4.py, code that recreates the examples from that section of the paper.
To install this package from inside the downloaded folder from Github:
python -m pip install -e .
To use, run the analysis engine straight from your terminal shell across your dataset directories using the console entrypoint:
kappaiou-run --baseline /data/author_baseline.csv --dir /data/annotator_tranches/ --tau 0.70
The author baseline and annotator tranche CSV files are expected to have the filenames in the first column, label in the second column, and then xywh-format annotations in the following four columns.
MIT License
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 kappaiou-1.0.0.tar.gz.
File metadata
- Download URL: kappaiou-1.0.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
345ff7103756c13f210011478b7db86201d434b5539bdff40b9f13e466750ab6
|
|
| MD5 |
12d77ee449bfceda052950660e737441
|
|
| BLAKE2b-256 |
9c6bec919dfd1df431837c67e986565ba542562d71225051fa672e138e81ab6b
|
File details
Details for the file kappaiou-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kappaiou-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c981645df5a6a77c4106b5b5a9cfaf70a8bf6d26fc5a8d66b7f8fb72d303f07
|
|
| MD5 |
4a35695dc586fc3a645da375b1b66e78
|
|
| BLAKE2b-256 |
5cefecd92fc2486b5c2a2db7b1d461fdabed255a676584964a75f567a2489712
|