Understanding Knowledge Representation: Decision Tables, Decision Trees, and Rules, Slides of Computer Fundamentals

An overview of knowledge representation, focusing on decision tables, decision trees, and rules. It covers the basics of each representation method, their advantages and limitations, and how they determine the underlying learning methods. Understanding these output formats is crucial for comprehending various machine learning techniques.

Typology: Slides

2012/2013

Uploaded on 01/29/2013

ashu
ashu 🇮🇳

3.8

(16)

107 documents

1 / 34

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Knowledge
Representation
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22

Partial preview of the text

Download Understanding Knowledge Representation: Decision Tables, Decision Trees, and Rules and more Slides Computer Fundamentals in PDF only on Docsity!

Knowledge

Representation

Docsity.com

2

Outline:

Output - Knowledge representation

 Decision tables

 Decision trees  Decision rules  Rules involving relations  Instance-based representation  Prototypes, Clusters

4

Decision tables

 Simplest way of representing output:  Use the same format as input!  Decision table for the weather problem:

 What do you think is the main problem?

Outlook Humidity Play Sunny High No Sunny Normal Yes Overcast High Yes Overcast Normal Yes Rainy High No Rainy Normal No

5

Decision tables

 Decision table for the weather problem:

Main problem: selecting the right attributes  Also, not flexible enough

Outlook Humidity Play Sunny High No Sunny Normal Yes Overcast High Yes Overcast Normal Yes Rainy High No Rainy Normal No

Docsity.com

7

Decision trees, 2

 Build a decision tree using this information:

Outlook Humidity Play Sunny High No Sunny Normal Yes Overcast High Yes Overcast Normal Yes Rainy High No Rainy Normal No

Docsity.com

8

overcast

high normal

sunny (^) rain

No

No

Yes

Yes

Decision trees, 3

Outlook

Humidity

Docsity.com

10

Missing values

 Does absence of value have some significance?  Yes ⇒ “missing” is a separate value

 No ⇒ “missing” must be treated in a special way  Solution A: assign instance to most popular branch  Solution B: split instance into pieces  Pieces receive weight according to fraction of training instances that go down each branch  Classifications from leave nodes are combined using the weights that have percolated to them

11

Classification rules

 Popular alternative to decision trees

 Antecedent (pre-condition): a series of tests (just

like the tests at the nodes of a decision tree)

 Tests are usually logically ANDed together (but may also be general logical expressions)

 Consequent (conclusion): classes, set of classes, or

probability distribution assigned by rule

 Individual rules are often logically ORed together  Conflicts arise if different conclusions apply

13

overcast

high normal

sunny (^) rain

No

No

Yes

Yes

From trees to rules, 2

Outlook

Humidity

Write rules for this tree.

Docsity.com

14

From trees to rules, 3

If outlook=sunny and humidity=high

then play=no

If outlook=sunny and humidity=normal

then play=yes

If outlook=overcast then play=yes

If outlook=rain then play=no

Docsity.com

16

A tree for a simple disjunction

17

The exclusive-or problem

If x = 1 and y = 0 then class = a If x = 0 and y = 1 then class = a If x = 0 and y = 0 then class = b If x = 1 and y = 1 then class = b

19

“Nuggets” of knowledge

 Are rules independent pieces of knowledge? (It seems easy to add a rule to an existing rule base.)

 Problem: ignores how rules are executed

 Two ways of executing a rule set:

 Ordered set of rules (“decision list”)  Order is important for interpretation  Unordered set of rules  Rules may overlap and lead to different conclusions for the same instance

20

Interpreting rules

 What if two or more rules conflict?

 Give no conclusion at all?  Go with rule that is most popular on training data?  …

 What if no rule applies to a test instance?

 Give no conclusion at all?  Go with class that is most frequent in training data?  …