Classification by Maximum Posterior Probability