Checkout
Personalized AI apps
Build multi-agent systems without code and automate document search, RAG and content generation
Start free trial
Question

Discriminative Models - Is Naive Bayes generative or discriminative?

Answer

In contrast to discriminative models like logistic regression, naive bayes is a generative model. The generative model takes the joint probability, p(x, y), of the inputs x and the label y into account, then uses Bayes rules to calculate p(y | x), and finally chooses the most likely label y.