Inductive Learning Algorithm
810:161
Artificial Intelligence
input:
- examples, a training set
- attributes, a set of attributes
- default, the default goal predicate value
output: a decision tree
- if examples is empty, then return default
- if all of the remaining examples have the same classification, then
return that value
- if attributes is empty, then return the most common classification
of the remaining examples
- choose the attribute a that best discriminates among the remaining
examples
- create a tree t with a as its root
- for each possible value v of a
- select the subset of examples ex having value(a) = v
- let subtree sub be the result of recursively calling the induction
algorithm with ex, (attributes - a), and the most common
classification of ex
- add a branch to t with label v and subtree sub
- return t
Eugene Wallingford ====
wallingf@cs.uni.edu ====
November 12, 1999