Chapter - 5 Learning
Chapter - 5 Learning
Chapter 3
Learning
Topics we will cover
2
Learning
Learning agents
Inductive learning
Deductive learning
Decision tree learning
Introduction
3
down.
Learning modifies the agent's decision mechanisms to
improve performance.
Learning agents
5
Learning agents
A learning agent can be divided into four
conceptual components:
a.Inductive learning-
Specific examples ----> general rule
b. deductive learning.
General rule ----> Specific examples
Inductive learning
16
Decision trees can express any function of the input attributes.
E.g., for Boolean functions, truth table row → path to leaf:
Trivially, there is a consistent decision tree for any training set with one
path to leaf for each example but it probably won't generalize to new
examples.
Prefer to find more compact decision trees.
Hypothesis Space of Decision Trees
26
Below is a training set for the problem of determining whether England will
win the football world cup. There are two input attributes (one Boolean and
one with three discrete values), and a Boolean outcome.
Using the information theory approach to selecting attributes, construct a
decision tree to represent this function.
INPUT ATTRIBUTES OUTPUT
RooneyPlays? Temperature? EnglandWin?
Yes 20-30oC Yes
Yes <20oC Yes
No <20oC No
No 20-30oC No
Yes >30oC No
No >30oC No
Exercise Solution
29
Therefore the maximum information gain comes from choosing the
RooneyPlays attribute. We make this the root of the tree. Now we have the
following tree:
We can see that the negative branch requires no further classification, as all
3 outcomes are Lose. The positive branch requires further classification, so
we use the Temperature attribute, resulting in the following final decision
tree:
Artificial Neural Networks
30
Input Layer
Summary
37