Skip to content

ADD: Feature to calculate Kohen's Kappa from labels#16

Merged
rcjackson merged 2 commits into
ARM-Development:mainfrom
rcjackson:ghactions
Apr 23, 2026
Merged

ADD: Feature to calculate Kohen's Kappa from labels#16
rcjackson merged 2 commits into
ARM-Development:mainfrom
rcjackson:ghactions

Conversation

@rcjackson
Copy link
Copy Markdown
Collaborator

This feature will calculate the Cohen's Kappa from the encoded labels.

Robert Jackson and others added 2 commits April 23, 2026 12:28
Adds calculate_cohen_kappa(df, label_col, pred_col) to lars/util/confusion_matrix.py
and exports it from lars/util/__init__.py.

Unit test asserts the exact value κ=5/11 for the mock six-row CSV
(4 agreements, p_e=7/18 from equal marginals across three classes).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rcjackson rcjackson merged commit 0f45d11 into ARM-Development:main Apr 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant