Bayesian classification

Suppose we have a classification problem for some function . We have a hypothesis space and training data . We want to work out what the best label is for . We can use maximum a posteriori probability to calculate Bayeses optimal classifier