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:
- humans
dict {annotator: {item: label}}with at least three annotators recommended.- llm
dict {item: label}.- epsilon
float Cost–benefit margin (0.2 experts, 0.15 skilled, 0.1 crowd workers, as suggested by Calderon et al., 2025).
- q
float False-discovery rate of the Benjamini–Yekutieli correction.
- metric{“accuracy”, “rmse”}
orcallable() 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).
- humans
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