easyiec.validation.position_consistency#

easyiec.validation.position_consistency(evaluator, problem, n_pairs=20, seed=0, goal=None, genomes=None)[source]#

Swap test on random pairs.

Each pair is asked twice, as (A, B) and as (B, A), in separate pairs queries (use a judge with debias="none" to measure its raw behaviour).

Returns:
dict

consistency (share of pairs with the same winner in both orders, ties counted as consistent only if both are ties), first_win_rate (share of decisive answers won by the first-shown candidate; 0.5 = unbiased), tie_rate and a per-pair table.