foundations of computational agents
So far, learning involves either choosing the best representation, such as the best decision tree or the best values for weights in a neural network, or predicting the value of the target features of a new case from a database of previous cases. This section considers a different notion of learning, namely learning as delineating those hypotheses that are consistent with the examples. Rather than choosing a hypothesis, the aim is to find a description of all hypotheses that are consistent with the data. This investigation will shed light on the role of a bias and provide a mechanism for a theoretical analysis of the learning problem.
We make three assumptions:
There is a single Boolean target feature, .
The hypotheses make definitive predictions, predicting true or false for each example, rather than probabilistic predictions.
There is no noise in the data.
Given these assumptions, it is possible to write a hypothesis in terms of a proposition, where the primitive propositions are assignments to the input features.
The decision tree of Figure 7.6 can be seen as a representation defined by the proposition
This is the prediction that the person read an article if and only if the article is short and either new or known.
The goal is to try to find a proposition on the input features that correctly classifies the training examples.
Consider a trading agent trying to infer which articles a user reads based on keywords for the article. Suppose the learning agent has the following data:
The aim is to learn which articles the user reads.
In this example, is the target feature, and the aim is to find a definition such as
This definition may be used to classify the training examples as well as future examples.
Hypothesis space learning assumes the following sets
, the instance space, is the set of all possible examples.
, the hypothesis space, is a set of Boolean functions on the input features.
is the set of training examples. Values for the input features and the target feature are given for the training example.
If and , then is the value that predicts for .
In Example 7.26, is the set of the possible examples, one for each combination of values for the features.
The hypothesis space could be all Boolean combinations of the input features or could be more restricted, such as conjunctions or propositions defined in terms of fewer than three features.
Hypothesis is consistent with a set of training examples if the value predicted by is the value of the target feature for each example in . That is, if , .
The problem in hypothesis space learning is to find the set of elements of that is consistent with all of the training examples.
Consider the data of Example 7.26, and suppose is the set of conjunctions of literals. An example hypothesis in that is consistent with the set that consists of a single example is . This hypothesis means that the person reads an article if and only if the article is not academic and it is about music. This concept is not the target concept because it is inconsistent with .