Brute-Force MAP Learning & Find-S
Source: Unit 3 §6
The brute-force MAP learning algorithm
The algorithm is exactly what the definition of MAP says, taken literally.
For any realistic this is computationally infeasible - the loop is over the entire hypothesis space. Its value is not as something you run. It is a standard or benchmark: a concept learner is judged by whether it produces what brute-force MAP would have produced.
Relation to concept learning
Assume fixed instances with classifications . Now choose the two probability definitions:
- Likelihood:
P(D|h) = 1ifhis consistent withD, and0otherwise. A hypothesis either explains the data perfectly or not at all. - Prior:
P(h)is uniform overH. No hypothesis is favoured before the data arrives.
Under those two choices, every consistent hypothesis ends up with the same posterior, and every inconsistent one gets zero:
That is a uniform distribution over the version space.
- Start: all hypotheses carry equal probability, because the prior is uniform.
- As data accumulates: every hypothesis inconsistent with an example drops to probability zero.
- The total probability, which is 1, is shared equally among the consistent hypotheses that remain.
- Fewer survivors means a larger share each, so as data is added, certainty increases.
Consistent learners and the Bayesian view of inductive bias
Every hypothesis consistent with is a MAP hypothesis, provided that (1) the prior over is uniform, and (2) the target concept with deterministic, noise-free data.
The consequence is the interesting part: Find-S outputs a MAP hypothesis, even though Find-S uses no probabilities at all. An algorithm does not have to know it is doing Bayesian inference to be doing Bayesian inference.
An algorithm's inductive bias can be characterised by choosing an
appropriate P(h) and P(D|h). The bias is not an informal preference sitting
outside the maths - it is exactly the prior and likelihood that would make the
algorithm's output the MAP hypothesis.