def log_likelihood_pairwise(data, params):
loglik = <NUM_LIT:0><EOL>for winner, loser in data:<EOL><INDENT>loglik -= np.logaddexp(<NUM_LIT:0>, -(params[winner] - params[loser]))<EOL><DEDENT>return loglik<EOL>
Compute the log-likelihood of model parameters.