CSCE 470 Lecture 21

From Notes
Jump to navigation Jump to search

« previous | Friday, October 11, 2013 | next »


Classifications

Rocchio

Finds "separating hyperplane" between classes of data (think of a Voronoi Diagram)

Naïve Bayes

Still given a set of documents C and a corpus of documents D


Bayes' Rule

P(A|B)=P(B|A)P(A)P(B)


Application

Think of A as a class and B as a document.

We want to estimate P(ci|d) for each class ci and a document d.

In regards to Bayes' Theorem, we do a little trick by assuming all documents have the same probability (i.e. P(d) doesn't matter).

Thus P(ci|d)=P(d|ci)P(ci).

We want to find the best class cMAP that gives us the highest probability

cMAP=argmaxciC P(ci|d)

Where MAP stands for Maximum A Posteriori

Training Data

Suppose we have ni documents in class ci for a corpus size N=ini.

We can estimate the probability of a class as

P(ci)=niN

We can estimate P(d|ci) by analyzing whether each term t in document d is from a certain class:

P(d|ci)=tTP(t|ci)