Likelihood-based Machine Learning Algorithm