Training the generative model – computing the MLE of the Gaussian parameters