easyiec.preference.bt_scores#
- easyiec.preference.bt_scores(pairs, items, prior=0.5, iters=200, tol=1e-09)[source]#
Bradley–Terry strengths by the MM algorithm (Hunter, 2004).
\(P(i\succ j)=\pi_i/(\pi_i+\pi_j)\). A symmetric prior of
priorvirtual ties against every other item keeps the estimate finite for items that never lost (or never won). Returns{item: log-strength}centred at 0.