MLE and MAP learning