easyiec.validation.alt_test#

easyiec.validation.alt_test(humans, llm, *, epsilon=0.15, q=0.05, metric='accuracy', test='auto', omega_threshold=0.5)[source]#

The alternative annotator test.

Parameters:
humansdict

{annotator: {item: label}} with at least three annotators recommended.

llmdict

{item: label}.

epsilonfloat

Cost–benefit margin (0.2 experts, 0.15 skilled, 0.1 crowd workers, as suggested by Calderon et al., 2025).

qfloat

False-discovery rate of the Benjamini–Yekutieli correction.

metric{“accuracy”, “rmse”} or callable()

Alignment of one label with the labels of the remaining annotators: share of exact matches, negative RMSE, or f(label, other_labels) -> score (larger is better).

test{“auto”, “t”, “wilcoxon”}

One-sided paired t-test, or Wilcoxon signed-rank (auto: Wilcoxon for fewer than 30 items).

Examples using easyiec.validation.alt_test#

May the AI replace the annotators? The alt-test and prediction-powered inference

May the AI replace the annotators? The alt-test and prediction-powered inference