 
  
  
  
  
 Next: What Attribute is the 
Up: Decision Tree Learning
 Previous: When to use Decision 
 
-  ID3(  , , , , ) )-  Create a   node for the tree node for the tree
-  If all   are positive, Return the single-node tree are positive, Return the single-node tree , with label = + , with label = +
-  If all   are negative, Return the single-node tree are negative, Return the single-node tree , with label = - , with label = -
-  If   is empty, Return the single-node tree is empty, Return the single-node tree , with label = most common value of , with label = most common value of in in  
-  Otherwise Begin
-    the attribute from the attribute from that best
classifies that best
classifies  
-  The decision attribute for    
-  For each possible value,   , of , of , ,-  Add a new tree branch below   , corresponding to the test , corresponding to the test  
-  Let   be the subset of be the subset of that have
value that have
value for for  
-  If   is empty is empty-  Then below this new branch add a leaf node with label = most
common value of   in in  
-  Else below this new branch add the subtree
   
 
 
 
-  End
-  Return    
 
 
Patricia Riddle 
Fri May 15 13:00:36 NZST 1998