Learning From Examples




CS156

Chris Pollett

Nov 24, 2014

Outline

Introduction

Forms of Learning

Components to be Learned

We have described several agents so far this semester. The components of these agents which might be improved include:

The book gives examples of the above in terms of a taxi driver agent.

Representation and Prior Knowledge

Quiz

Which of the following is true?

  1. The principle of Maximum expected utility says that a decision theory agent should choose an action which yields the lowest expected payoff among the available choices.
  2. In probabibility theory marginalization and conditioning are the same thing.
  3. The following calculation is an example of applying Baye's rule: If a doctor knows that 70% of people with meningitis have stiff necks and the odds of meningitis are 1/50000 and the odds of a stiff neck are 1/100. Then the odds of meningitis given a stiff neck are (.7 * 1/50000)/0.01 = 0.0014.

Feedback to learn from

There are three main types of feedback that correspond to the three main types of learning:

In addition, to the above there is also things such as semi-supervised learning where we are given a few labeled examples and must make what we can of a large collection of unlabeled examples.

Unsupervised Learning

Supervised Learning

Ockham's Razor

Learning Decision Trees

Example Decision Tree

Inducing decision trees from examples.

Decision Tree Learning Algorithm

Here is an algorithm for coming up with a decision for a set of examples.

function Decision-Tree-Learning(examples, attributes, parent_examples) returns a tree
    if examples is empty then return Plurality-Value(parent_examples)
    else if all examples have the same classification then return the classification
    else if attributes is empty then return Plurality-Value(examples)
    else
        A := argmax_(a in attributes)Importance(a, examples)
        tree :=  a new decision tree with root test A
        for each value v_k of A do
            exs := {e : e in examples and e.A = v_k}
            subtree := Decision-Tree-Learning(exs, attributes -  A, examples)
            add a branch to tree with label (A=v_k) and subtree subtree
        return tree