Skip to main content
Naive Bayes classifier

Naive Bayes classifier

Search complete. 15 mentions across 5 episodes found for "Naive Bayes classifier".

Nov 3, 2026

Percy LiangHOST
18:11
So let's look at some other Bayesian networks with parameter sharing.
Percy LiangHOST
18:16
So we already looked at the Naive Bayes before, but just to anchor it in this notation, we have some, let's say we have a genre and we have a movie review, and we have a Bayesian network which generates each word independently conditioned on the genre.
Percy LiangHOST
18:39
And so the joint distribution over everything is equal to probability under genre of Y times for each word, the probability of a particular word given Y.
Percy LiangHOST
18:54
So the parameters of this Bayesian network are the genre and P word.

12 MINS LATER

Percy LiangHOST
31:08
So secondly, we looked at the maximum likelihood principle, which is this kind of high-minded principle that says maximize the likelihood of your data.
Percy LiangHOST
31:18
And we show that this is equal to this very a pragmatic and simple intuitive principle of counting and normalizing.
Percy LiangHOST
31:28
And this is the simplicity which makes Bayesian networks, especially Naive Bayes, still very practical, useful, and interpretable.
Percy LiangHOST
31:37
That's the end.
Percy LiangHOST
12:07
document? So a
Percy LiangHOST
12:13
fancier version of the Naive Bayes model is called latent Dirichlet allocation.
Percy LiangHOST
12:19
And here, we're going to assume that a document is not just about one topic, but possibly multiple topics.
Percy LiangHOST
12:25
So I'm going to generate a distribution over topics called alpha.
Christopher PottsHOST
18:06
And already from here, you can see that there's lots of space to explore.
Christopher PottsHOST
18:10
If I wanted to try naive Bayes or a support vector machine, I would just write a different model wrapper.
Christopher PottsHOST
18:16
If I wanted to explore different feature functions, I would just write new functions of trees, uh, and that would be very quick in terms of evaluating.
Christopher PottsHOST
18:24
And by default, this is going to evaluate on random train test splits that are drawn from the training data, um, and you could periodically test against the dev set to see how well you're doing in reality.
Christopher PottsHOST
21:00
there's no end of these things
Christopher PottsHOST
21:01
essentially.
Christopher PottsHOST
21:02
If you go on to scikit-learn and just look like in the linear model package, that things like logistic regression or if you look at the support vector machines in there or the Naive Bayes models, they have dozens of things that are hyperparameters.
Christopher PottsHOST
21:15
And you can see them codified in code because it says like, here are all the keyword arguments, they have some defaults, but that's just one of the many values that you could explore for each one of those things.
Chris RéHOST
4:38
The importance of generative models, you know, let's say arguably dwarfs the discriminative from the point of view of excitement, maybe not of utility yet.
Chris RéHOST
4:46
And then we'll talk about Naive Bayes, which is, like, one of the simplest generative models.
Chris RéHOST
4:50
Um, and we'll do, like, a spam filter because I think there's still some, like, law that we have to teach you how to build a spam filter.
Chris RéHOST
4:55
All right.

37 MINS LATER

Chris RéHOST
41:58
And if something magical happens is we can set the derivatives to zero and solve it and get a closed form solution.
Chris RéHOST
42:04
Okay? This isn't necessary for Gaussian models, but GDA does have this nice feature, and that is a feature worth pointing out because often people would use these generative models in situations when they wanted to compute something relatively cheaply.
Chris RéHOST
42:17
And we'll see probably the, the archetype of this, something called Naive Bayes at the end of this lecture, which, like, is a very good first model.
Chris RéHOST
42:25
It's a count-based model.
Imran AhmadGUEST
20:01
So I looked into that, and I said that, "Why don't you just use...
Imran AhmadGUEST
20:04
There's a Naive Bayes algorithm." Naive Bayes is a famous algorithm that can be used.
Imran AhmadGUEST
20:08
And so they said, "Can we use that?" I said, "It's a very simple chat.
Imran AhmadGUEST
20:11
It's...
Imran AhmadGUEST
20:12
Just try to use it." So they used Naive Bayes, and it was faster, it was cheaper, and the cost was zero because we own the algorithm, right? So the cost from thousands of dollars, it reduced to zero.
Imran AhmadGUEST
20:24
And to my surprise, the results were better.
Imran AhmadGUEST
20:28
The confusion matrix was better.

We value your privacy

We use cookies to understand how you use our platform and to improve your experience. Click “Accept All” to consent, or “Decline non-essential” to opt out of non-essential cookies. Read our Privacy Policy.