Two parameter inference methods in likelihood-free models : approximate Bayesian computation and contrastive divergence