Repository navigation
feat: add population-level reliability analysis - #15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a repeated-task population reliability layer for TurkishEvalKit 0.10.0 while keeping it separate from same-stimulus calibration and from evaluator correctness/ranking.
Reliability model
A
PopulationReliabilitySpeccontains multiple independent task units. Each task contains two or more evaluator submissions and is revalidated through the existing evaluation/calibration core.Dataset-level invariants:
minimum_task_count >= 3The declared minimum is an inclusion guardrail, not a universal sample-size sufficiency claim.
Metrics and applicability
Krippendorff alpha
Fleiss kappa
ICC(A,1)
Every coefficient is a typed
ReliabilityEstimatecontainingvalue,applicable,reason, and explicit assumptions. Unsupported dataset designs returnapplicable=falseinstead of a coerced statistic. Negative coefficients are preserved.CLI and public API
Adds:
Public API includes
ReliabilityTask,PopulationReliabilitySpec,ReliabilityEstimate,CriterionReliability,PopulationReliabilityReport, andbuild_population_reliability_report.Trust boundary
Population reliability is read-only with respect to TurkishEvalKit workspace artifacts. It does not mutate evaluations, workflows, revisions, calibrations, queue state, or disagreement projections. It does not infer which evaluator is correct, rank evaluators, or define universal pass/fail thresholds.
The 0.10.x scope is deliberately core + CLI + portable JSON. A future browser surface should reuse the same statistics core rather than implement a second engine.
Documentation
0.10.0docs/RELIABILITY.mdPopulation ReliabilityworkflowValidation
Validated in pull-request context on Python 3.11, 3.12, and 3.13:
reliability.pycoverage: 93%