Discriminative versus generative models