Prev Up Next
Go backward to Solution to Question 1, part 1
Go up to Question 1
Go forward to Solution to Question 1, part 1

Solution to Question 1, part 2

What tree is found when the attributes are in the order [where_read, thread, length, author]? Does this tree represent a different function than that found with the more complicated selection mechanism or the one given for the preceding part? Explain.

Here is the trace (reformatted for easy reading):

cilog: ask dtlearn(user_action, 
           [e1,e2,e3,e4,e5,e6,e7,e8,e9,e10,e11,e12,e13,e14,e15,e16,e17,e18],
           [ where_read, thread, length, author],DT).
Answer: dtlearn(user_action, 
               [e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12,
                    e13, e14, e15, e16, e17, e18], 
               [where_read, thread, length, author],
               if(where_read = home, 
                    if(thread = new, if(length = long, skips, reads), 
                                     if(length = long, skips, 
                                         if(author = unknown, skips, reads))),
                    if(thread = new, if(length = short, reads, skips),
                                     if(length = long, skips, 
                                        if(author = unknown, skips, reads))))).
This represents the same function as the tree of Figure 11.3. It classifies every example in the same way.
Prev Up Next