- Published on
Popular interview question: Difference between generative and discriminative models
- Authors
- Name
- AbnAsia.org
- @steven_n_t
You have heard of Generative Ai. Now what the hell are discriminative models?
Based on the data modeling approach, ML models can be classified into two categories:
Generative
Discriminative
We prepared the following visual which depicts how they differ.
Discriminative models:
learn decision boundaries that separate different classes.
maximize the conditional probability: P(Y|X) — Given X, maximize the probability of label Y.
are specifically meant for classification tasks.
Generative models:
maximize the joint probability: P(X, Y)
learn the class-conditional distribution P(X|Y)
are typically not preferred to solve downstream classification tasks.
Since generative models learn the underlying distribution, they can generate new samples. But this is not possible with discriminative models.
Furthermore, generative models possess discriminative properties, i.e., they can be used for classification tasks (if needed). But discriminative models do not possess generative properties.
Author
AiUTOMATING PEOPLE, ABN ASIA was founded by people with deep roots in academia, with work experience in the US, Holland, Hungary, Japan, South Korea, Singapore, and Vietnam. ABN Asia is where academia and technology meet opportunity. With our cutting-edge solutions and competent software development services, we're helping businesses level up and take on the global scene. Our commitment: Faster. Better. More reliable. In most cases: Cheaper as well.
Feel free to reach out to us whenever you require IT services, digital consulting, off-the-shelf software solutions, or if you'd like to send us requests for proposals (RFPs). You can contact us at [email protected]. We're ready to assist you with all your technology needs.
© ABN ASIA