Docsity

Notes on BOAT Algorithm - Advanced Spatial Data Management | CS 6604, Study notes of Computer Science

Toggle sidebar
bg1
CS 6604: Data Mining Fall 2007
Lecture 10 — September 19, 2007
Lecture: Naren Ramakrishnan Scribe: Seungwon Yang
1 Overview
In the previous lecture we examined the decision tree classifier and choices for impurity function whose
main property is concavity. (Question: How can we define concavity without using the derivative?) In the
BOAT algorithm, using bootstrapping, we obtain confidence intervals for the nodes (when the node attribute
type is numerical) as well as a ‘tentative’ decision tree. We can find the final splitting criterion by scanning
all the database tuples from secondary storage, and calculating the minimum value of the impurity function
in the confidence interval.
In this lecture we continue discussing the BOAT algorithm, describe deriving rules from trees, both simul-
taneous and sequential covering, classifier validation methods, and other ways of classification. In addition,
a new topic, Relational Datamining, is introduced.
2 BOAT algorithm
Figure 1: BOAT algorithm
Figure 1 shows the BOAT algorithm steps. Once the trees (from bootstrapping) are combined, each node’s
exact splitting criteria should be found. In order to be sure the split point in the nodes are not outside the
confidence interval, we need to check the minimum value of the impurity function is the global minimum,
not the local one. To do this, there should be lots of impurity function coefficient value calculations - inside
and outside of the confidence intervals of nodes -, which is toomuch to store in the memory simultaneously
during the full scan of DB. To do this, BOAT uses the concavity property of the impurity function - it is
guaranteed that the minimum value will lie on the convex hull [1] (of what?).
3 Simultaneous & sequential covering rules
Think of decision trees as a compaction of rules.
1
pf3
pf4
pf5

Partial preview of the text

Download Notes on BOAT Algorithm - Advanced Spatial Data Management | CS 6604 and more Study notes Computer Science in PDF only on Docsity!

CS 6604: Data Mining Fall 2007

Lecture 10 — September 19, 2007

Lecture: Naren Ramakrishnan Scribe: Seungwon Yang

1 Overview

In the previous lecture we examined the decision tree classifier and choices for impurity function whose main property is concavity. (Question: How can we define concavity without using the derivative?) In the BOAT algorithm, using bootstrapping, we obtain confidence intervals for the nodes (when the node attribute type is numerical) as well as a ‘tentative’ decision tree. We can find the final splitting criterion by scanning all the database tuples from secondary storage, and calculating the minimum value of the impurity function in the confidence interval.

In this lecture we continue discussing the BOAT algorithm, describe deriving rules from trees, both simul- taneous and sequential covering, classifier validation methods, and other ways of classification. In addition, a new topic, Relational Datamining, is introduced.

2 BOAT algorithm

Figure 1: BOAT algorithm

Figure 1 shows the BOAT algorithm steps. Once the trees (from bootstrapping) are combined, each node’s exact splitting criteria should be found. In order to be sure the split point in the nodes are not outside the confidence interval, we need to check the minimum value of the impurity function is the global minimum, not the local one. To do this, there should be lots of impurity function coefficient value calculations - inside and outside of the confidence intervals of nodes -, which is too much to store in the memory simultaneously during the full scan of DB. To do this, BOAT uses the concavity property of the impurity function - it is guaranteed that the minimum value will lie on the convex hull [1] (of what?).

3 Simultaneous & sequential covering rules

Think of decision trees as a compaction of rules.

Figure 2: (a)Simultaneous covering tree; (b)Sequential covering tree

3.1 Simultaneous covering

Write down each path in Figure 2 (a) as a rule. This gives a total of four rules:

  • If C 1 = Y and C 2 = Y then...
  • If C 1 = Y and C 2 = N then...
  • If C 1 = N and C 2 = Y then...
  • If C 1 = N and C 2 = N then...

3.2 Sequential covering

As mentioned in lecture 8, rules are not required to be ordered in a simultaneous covering. The decision tree in Figure 2 (b) has a special structure, i.e., the ”yes” branch of each node leads to a leaf. This is known as a decision list and is similar to an if-then-else construct. It implies that the rules must be applied in a certain order.

  • if C 1 = Y then...
  • else - C 2 = Y then... - else ∗ if C 3 = Y then... ∗ else...

To find such rules we find one rule, remove the data points covered (classified correctly) by that rule, find the next rule, and so on.

If we have lots of features, it’s better to use sequential covering. Whereas if there are not many features, simultaneous covering might be more useful since it shares conditions among its rules.

4.2 Validation methods

K-fold cross-validation method evaluates the performance of an algorithm as follows.

  1. Partition the dataset into K parts
  2. Retain a single part and train on the remaining ( K - 1) parts
  3. Test on the retained K -th part

By repeating steps 2 and 3, we have K times (folds) training and test sessions. These K results are then typically averaged to produce a single performance estimation. A special case of K-fold cross-validation is called Leave-one-out cross-validation which uses a single ’observation’ from the original dataset as the test set and use the remaining observations as the training set. Hence it is exactly the same as K-fold cross- validation method when K is equal to the number of observations in the original dataset.

4.3 Other ways of classification

Let’s say there is a set of points in the space. We want to find the hyperplane that separates them. As shown in Figure 4 (a), if we model it with a decision tree, the tree essentially induces a set of isothetic hyperplanes. For a ’diagonal’ separation boundary, the tree will get enormously complicated and follow a zig-zag pattern.

There are algorithms that directly learn hyperplanes. One example are decision trees that have linear combi- nations of attributes as conditions. Another example is the support vector machine (SVM) which also learns a hyperplane separating the two classes.

Notice that there can be many hyperplanes separating given classes. The contribution of SVM is that it defines a criterion by which there can be only one hyperplane (optimizing it). That criterion has to do with the distance from the hyperplane to the nearest point on either side. The SVM method (Figure 4 (b)) then finds the hyperplane that maximizes this minimum distance.

Figure 4: (a) Zigzag-shaped decision boundary; (b) Separating hyperplane and support vector in SVM.

The SVM comes with the ability to do the ‘kernel trick.’ The trick converts a linear classifier into a non- linear one by using a mapping function to map the original data into a high dimensional feature space.

5 Next topic - Relational Data mining

What does it mean? It is learning from multiple relations. Table 3 might not contain enough information by itself to determine a classification rule (for predicting if somebody can get a credit card approval). But given

Figure 5: (a) Hard-to-separate data for a linear decision boundary; (b) Data suitably transformed to enable separation by linear boundaries.

...... Elizabeth Jones smith ...... ...... ......

Table 2: Married-to

Name Salary CC Dan Brown $2M Y Jones Smith $300K Y Elizabeth $10K Y Naren $20K N

Table 3: Credit card approval

another table (e.g., Table 2) which gives relevant information, we might learn a pattern such as:

  • Creditrating(x, good) ← Salary(x, y), y ≥ Q_._
  • Creditrating(x, good) ← Marriedto(x, y), Salary(y, z), z ≥ Q_._

One way to learn such patterns is by multiplying the two tables, i.e, flattening them by joins. This is called ‘propositionalization.’ However, naive propositionalization is not an ideal way to mine multiple relations; we will investigate true relational techniques soon.

Let us recap some rules of logic.

  • Modus Ponens: Given α, α → β concludes β
  • Modus Tollens: Given ¬β, α → β concludes ¬α
  • Resolution: If ¬α ∨ β and ¬β ∨ γ then ¬α ∨ γ (in other words, α → β, β → γ then α → γ)

Given the following facts

  1. All CS courses are easy.
  2. CS 6604 is a CS course.
  3. CS 6604 is easy.

In deductive logic, (1) + (2) → (3) when Modus Ponens is applied. But in data mining, we try to have a generalized rule from the specifics (e.g., (2) + (3) → (1))

More in next class.