๐——๐—ถ๐˜€๐—ฐ๐—ฟ๐—ถ๐—บ๐—ถ๐—ป๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ vs. ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ Models – A simple and intuitive explanation!!!

Facebook
Twitter
LinkedIn

Table of Contents

๐——๐—ถ๐˜€๐—ฐ๐—ฟ๐—ถ๐—บ๐—ถ๐—ป๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ vs. ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ Models – A simple and intuitive explanation!!!

Imagine you and your friend work at a bank.

Your job is to detect fraudulent Transactions. You are expert in identifying whether a specific transaction is fraudulent or not based on patterns in past transactions.

Your friendโ€™s job is to observe customer spend. He is expert at modeling customer spending habits to understand their typical purchase patterns, preferences, and financial behavior.

You are a discriminative Model while your friend is a generative model.

How?

You focus on the decision boundary, distinguishing between classes (fraudulent vs. legitimate).

While your friend understands the data distribution, enabling it to generate new, realistic examples.

Thatโ€™s it.

Let’s dig deeper.

โญ• Discriminative Models

Discriminative models are all about distinguishing between classes. They model the decision boundary that separates different categories without trying to understand the underlying data distribution.

Common Examples:
โ€ข Logistic Regression
โ€ข Support Vector Machines (SVMs)
โ€ข KNN and many more..

โญ• Generative Models

Generative models aim to capture the data distribution, allowing them to not only classify but also generate new examples from the same distribution.

Why Theyโ€™re Useful:
โ€ข Generating realistic images (e.g., GANs generating human faces).
โ€ข Filling in missing information (e.g., generating text in ChatGPT).
โ€ข Unsupervised learning (e.g., learning clusters without labeled data).

Common Examples:

โ€ข Naive Bayes
โ€ข Generative Adversarial Networks (GANs)
โ€ข Variational Autoencoders (VAEs)

When to Use What?

โ€ข Use Discriminative Models:โ€จWhen you need accurate predictions for tasks like spam filtering or image classification.
โ€ข Use Generative Models:โ€จWhen you want to generate new data or model complex relationships.

PS: My new cohort of Master DataScience Program is starting on Nov 28. DM for more details.

Facebook
Twitter
LinkedIn

Similar Posts

Contact Us

We would be delighted to help !

Contact Us

Call Now Button