The pseudo-likelihood method for pairwise binary markov networks