def _mm_pairwise(n_items, data, params):
weights = exp_transform(params)<EOL>wins = np.zeros(n_items, dtype=float)<EOL>denoms = np.zeros(n_items, dtype=float)<EOL>for winner, loser in data:<EOL><INDENT>wins[winner] += <NUM_LIT:1.0><EOL>val = <NUM_LIT:1.0> / (weights[winner] + weights[loser])<EOL>denoms[winner] += val<EOL>denoms[loser] += val<EOL><DEDENT>return wins, denoms<EOL>
Inner loop of MM algorithm for pairwise data.