Learning from Observations: Understanding Inductive Learning and Decision Trees, Study notes of Computer Science

An introduction to learning from observations, focusing on inductive learning and decision trees. Inductive learning is a method used to construct or adjust a hypothesis based on a given training set, aiming for consistency and simplicity. Decision trees are a representation for hypotheses, expressing any function of input attributes and allowing for efficient classification. The design of learning elements, hypothesis spaces, and the decision tree learning algorithm.

Typology: Study notes

Pre 2010

Uploaded on 08/05/2009

koofers-user-dap
koofers-user-dap 🇺🇸

5

(1)

10 documents

1 / 30

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Learning from Observations
Chapter 18, Sections 1–4
Chapter 18, Sections 1–4 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Learning from Observations: Understanding Inductive Learning and Decision Trees and more Study notes Computer Science in PDF only on Docsity!

Learning from Observations

Chapter 18, Sections 1–

Chapter 18, Sections 1–

Outline

Learning agents

Inductive learning

Decision tree learning

(Next lecture covers neural networks)

Chapter 18, Sections 1–

Learning agents

Performance standard

Agent

Environment

Effectors Sensors

Performance

element

changes

knowledge

learning goals

Problem

generator

feedback

Learning element Critic

experiments

Chapter 18, Sections 1–

Learning element

Design of learning element is dictated by

what type of performance element is used

which functional component is to be learned

how that functional compoent is represented

what kind of feedback is available

Example scenarios:

Simple reflex agent Logical agent Alpha−beta search Performance element

Transition model Transition model Eval. fn. Component

Neural net Dynamic Bayes net Successor−state axioms Weighted linear function Representation

Utility−based agent

Percept−action fn

Correct action Outcome Outcome Win/loss Feedback

Supervised learning

: correct answers for each instance

Reinforcement learning

: occasional rewards

Chapter 18, Sections 1–

Inductive learning method

Construct/adjust

h

to agree with

f

on training set

h

is

consistent

if it agrees with

f

on all examples)

E.g., curve fitting:

x

f(x)

Chapter 18, Sections 1–

Inductive learning method

Construct/adjust

h

to agree with

f

on training set

h

is

consistent

if it agrees with

f

on all examples)

E.g., curve fitting:

x

f(x)

Chapter 18, Sections 1–

Inductive learning method

Construct/adjust

h

to agree with

f

on training set

h

is

consistent

if it agrees with

f

on all examples)

E.g., curve fitting:

x

f(x)

Chapter 18, Sections 1–

Inductive learning method

Construct/adjust

h

to agree with

f

on training set

h

is

consistent

if it agrees with

f

on all examples)

E.g., curve fitting:

x

f(x)

Chapter 18, Sections 1–

Attribute-based representations

Examples described by

attribute values

(Boolean, discrete, continuous, etc.)

E.g., situations where I will/won’t wait for a table: Example

Attributes

Target

Alt

Bar

F ri

Hun

P at

P rice

Rain

Res

T ype

Est

WillWait

X 1 T F F T

Some

$$$

F

T

French

0–

T

X 2 T F F T

Full

$

F

F

Thai

30–

F

X 3 F T F F

Some

$

F

F

Burger

0–

T

X 4 T F T T

Full

$

F

F

Thai

10–

T

X 5 T F T F

Full

$$$

F

T

French

60

F

X 6 F T F T

Some

$$

T

T

Italian

0–

T

X 7 F T F F

None

$

T

F

Burger

0–

F

X 8 F F F T

Some

$$

T

T

Thai

0–

T

X 9 F T T F

Full

$

T

F

Burger

60

F

X

10

T

T

T

T

Full

$$$

F

T

Italian

10–

F

X

11

F

F

F

F

None

$

F

F

Thai

0–

F

X

12

T

T

T

T

Full

$

F

F

Burger

30–

T

Classification

of examples is

positive

(T) or

negative

(F)

Chapter 18, Sections 1–

Decision trees

E.g., here is the “true” tree for deciding whether to wait: One possible representation for hypotheses

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

No

Yes

None

Some

Full

>

30−

10−

0−

No

Yes

Alternate?

Hungry?

Reservation?

Bar?

Raining?

Alternate?

Patrons?

Fri/Sat?

WaitEstimate?

F

T

F

T

T

T

F

T

T

F

T

T

F

Chapter 18, Sections 1–

Hypothesis spaces

How many distinct decision trees with

n

Boolean attributes

Chapter 18, Sections 1–

Hypothesis spaces

How many distinct decision trees with

n

Boolean attributes

= number of Boolean functions

Chapter 18, Sections 1–

Hypothesis spaces

How many distinct decision trees with

n

Boolean attributes

= number of distinct truth tables with = number of Boolean functions

n

rows =

2 n

Chapter 18, Sections 1–

Hypothesis spaces

How many distinct decision trees with

n

Boolean attributes

= number of distinct truth tables with = number of Boolean functions

n

rows =

2 n

E.g., with 6 Boolean attributes, there are 18,446,744,073,709,551,616 trees

Chapter 18, Sections 1–