



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CS 6604: Data Mining Fall 2007
Lecture: Naren Ramakrishnan Scribe: Ying Jin
In the last lecture we discussed the BOAT algorithm, deriving rules from trees, both simultaneous and sequential covering, classifier validation methods, and other ways of classification. In addition, we briefly introduced relational data mining.
In this lecture we discuss the new topic of relational data mining in more detail, and describe two major methods of RDM: (i) taking logic and adding some induction (Inductive Logic Programming (ILP)); and (ii) taking induction and adding some logic.
Relational data mining is a data mining technique for learning patterns from multiple relations (tables in relational databases). Recall that relations in a RDBMS correspond to predicates (in logic programming terminology).
Given some sentences as below, what can we infer from them?
Here are example inferences that are all consistent with the above facts:
Hence data mining (like always) requires some bias, in order to express preferences on hypotheses.
Let’s begin by refreshing our memory about some concepts in propositional logic and predicate Logic.
Modus ponens is a common rule of inference that concludes q given p → q and q. Recall that p → q can be written as ¬p ∨ q.
Entailment (|=): p |= q means that models of p are also models of q.
For example,
Resolution rule: (¬p ∨ q, ¬q ∨ r) |= (¬p ∨ r).
Usually resolution is used in refutation mode of operation, i.e., negate the goal and try to derive a contradic- tion.
As a practice problem, let us prove p ∧ q |= p ⇔ q.
We are hence given two clauses: p (clause 1) and q (clause 2). The goal to be proved: p ⇔ q can be equivalently written as (¬p ∨ q) ∧ (p ∨ ¬q). We negate this and obtain:
¬((¬p ∨ q) ∧ (p ∨ ¬q)) ¬(¬p ∨ q) ∨ ¬(p ∨ ¬q) (p ∧ ¬q) ∨ (¬p ∧ q) (p ∨ q) ∧ (¬q ∨ ¬p)
This thus gives two clauses: p ∨ q (clause 3) and ¬q ∨ ¬p (clause 4).
Applying resolution rule on clauses 2 and 4 gives ¬p, which in turn resolving with clause 1 gives a contra- diction.
2.1.1 Predicate Logic
Predicates contain arguments as opposed to propsitions. For example:
Modus ponens can be generalized as p(x), p(x) → q(y) |= q(y), under the substitution {x/y}.
Here is another example.
Figure 1: Proof for the Dolphins example.
Let us take another example: the following tables give data from multiple relations.
Table 1: daughter
ann mary ann tom tom eve tom ian
Table 2: parent
ann mary eve
Table 3: female
Suppose there is a rule for the “daughter” relationship, daughter(x, y) ⇐ parent(y, x) ∧ f emale(x). We can examine if the daughter relationship is satisfied for any two people in the dataset by applying resolution rules. For example, given
Fig. 2 gives an example of applying resolution to conclude a specific daughter relationship from the above data.
PROLOG is a well known logic programming language. What is its shorcomming? It uses depth first search, so can wander down a lost path in search of a proof. Also, most PROLOG implementations have deliberately missed out the “occurs check”, i.e., unifing a variable against a term containing that variable.
Figure 2: Proving that daughter(mary,ann) is true.
Supposer we want to infer the general rule ¬parent(y, x) ∨ ¬f emale(x) ∨ daughter(x, y), we just run the proof from Fig. 2 “in reverse.” This is called inverse resolution.
We have discussed decision tree induction in previous classes. Let’s think about a tree whose conditions are based on predicate argument, as shown in Fig. 3.
Figure 3: Example of relational decision tree.
Just as we grow decision trees inductively, we can determine the best question to ask and incrementally grow the tree based on predicate arguments.
Another approach, to directly learn rules, is to do a levelwise search for rules. Initially start with a rule that has no predicates in the antecdent, i.e., that always predicts that X is the daughter of Y. Then consider rules that have one condition, then rules that have two conditions, and so on. The notion of θ -subsumption is relevant here: clause 1 θ -subsumes clause 2 if there exists a substitution θ, s.t. C 1 θ ⊆ C 2. We will discuss this in more detail in the next class.