update mvnpdf in training stage