rule induction

37
Rule Induction

Upload: tawana

Post on 05-Jan-2016

39 views

Category:

Documents


2 download

DESCRIPTION

Rule Induction. Rule Induction Algorithms. Hypothesis Space: Sets of rules (any boolean function) Many ways to search this large space Decision trees -> Rules is one ( simultaneous covering ) Following example: greedy sequential covering algorithm (similar to CN2). Some FOL Terminology. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Rule Induction

Rule Induction

Page 2: Rule Induction
Page 3: Rule Induction
Page 4: Rule Induction
Page 5: Rule Induction
Page 6: Rule Induction

Rule Induction Algorithms

• Hypothesis Space: Sets of rules (any boolean function)– Many ways to search this large space– Decision trees -> Rules is one (simultaneous

covering)

• Following example: greedy sequential covering algorithm (similar to CN2)

Page 7: Rule Induction
Page 8: Rule Induction
Page 9: Rule Induction
Page 10: Rule Induction
Page 11: Rule Induction
Page 12: Rule Induction
Page 13: Rule Induction
Page 14: Rule Induction
Page 15: Rule Induction
Page 16: Rule Induction
Page 17: Rule Induction

Some FOL Terminology• Constants: (Mary, 23, Joe)

• Variables: (e.g., x, can refer to any constant)

• Predicates: (have a truth value; e.g. Female as in Female(Mary))

• Functions: (apply to terms and evaluate to a constant value, e.g. Age(Mary))

• Terms: any constant, variable, or function applied to a term (e.g. Mary, x, Age(x))

• Literals: any predicate applied to terms, e.g. Female(x) or Greater_than(Age(Mary), 20)

Page 18: Rule Induction

Some FOL Terminology (cont.)• Clause: Disjunction of literals with universally quantified

variables, e.g. Greater_than(Age(x), 23) v Female(Mary)

Page 19: Rule Induction
Page 20: Rule Induction
Page 21: Rule Induction

Example• Learning Granddaughter(x,y)

• Training Data:

Target Predicates: Input Predicates:Granddaughter(Victor, Sharon) Father(Sharon, Bob)

Father(Tom, Bob)

Female(Sharon)

Father(Bob, Victor)

…all other possible predicates defined over the constants are false (e.g. Granddaughter(Tom, Bob)…so 15 negative examples of Granddaughter(x, y) as well)

Page 22: Rule Induction

Example: Learning a Rule• Learning one rule:

Granddaughter(x, y) Classifies all examples as positive (makes 15 mistakes)

Granddaughter(x, y) Father(y, z)

Makes fewer mistakes

Granddaughter(x, y) Father(y, z) ^ Father(z, x)

Makes only one mistake

Granddaughter(x, y) Father(y, z) ^ Father(z, x) ^ Female(y)

Makes zero mistakes – output rule; because rule set now covers all positive examples, we are done.

Page 23: Rule Induction
Page 24: Rule Induction
Page 25: Rule Induction
Page 26: Rule Induction
Page 27: Rule Induction
Page 28: Rule Induction
Page 29: Rule Induction
Page 30: Rule Induction
Page 31: Rule Induction
Page 32: Rule Induction
Page 33: Rule Induction
Page 34: Rule Induction
Page 35: Rule Induction
Page 36: Rule Induction
Page 37: Rule Induction