0% found this document useful (0 votes)
41 views19 pages

Generative

The document discusses the differences between generative and discriminative models. Generative models focus on understanding how the data is generated by modeling the joint probability distribution, while discriminative models focus on distinguishing between classes by modeling the conditional probability. Common types of generative models are then listed along with real-world use cases and benefits and limitations of generative models.

Uploaded by

Shiva kannan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views19 pages

Generative

The document discusses the differences between generative and discriminative models. Generative models focus on understanding how the data is generated by modeling the joint probability distribution, while discriminative models focus on distinguishing between classes by modeling the conditional probability. Common types of generative models are then listed along with real-world use cases and benefits and limitations of generative models.

Uploaded by

Shiva kannan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

A generative model is a statistical model of the joint probability distribution P(X,Y) on

given observable variable X and target variable Y


A discriminative model is a model of the conditional probability P(Y/X=x) of the target Y,
given an observation x;

The distinction between generative and discriminative models is fundamental in


machine learning:

Generative models: These models focus on understanding how the data is generated.
They aim to learn the distribution of the data itself. For instance, if we're looking at
pictures of cats and dogs, a generative model would try to understand what makes a cat
look like a cat and a dog look like a dog. It would then be able to generate new images
that resemble either cats or dogs.

Discriminative models: These models, on the other hand, focus on distinguishing between
different types of data. They don't necessarily learn or understand how the data is generated;
instead, they learn the boundaries that separate one class of data from another. Using the same
example of cats and dogs, a discriminative model would learn to tell the difference between the
two, but it wouldn't necessarily be able to generate a new image of a cat or dog on its own.

Types of Generative Models


Generative models come in various forms, each with its unique approach to understanding and
generating data. Here's a more comprehensive list of some of the most prominent types:
Bayesian networks. Diffusion models.
Generative Adversarial Networks (GANs).
Variational Autoencoders (VAEs).
Restricted Boltzmann Machines (RBMs)..
Pixel Recurrent Neural Networks (PixelRNNs).
Markov chains.
Normalizing flows
Real-World Use Cases of Generative Models
Generative models have penetrated mainstream consumption, revolutionizing the way we
interact with technology and experience content, for example:

Art creation.
Drug discovery.
Content creation. .
Video games. .

What are the Benefits of Generative Models?


Generative models, with their unique ability to create and innovate, offer a plethora of
advantages that extend beyond mere data generation. Here's a deeper dive into the myriad
benefits they bring to the table:

 Data augmentation. In domains where data is scarce or expensive to obtain, generative models can
produce additional data to supplement the original set. For instance, in medical imaging, where
obtaining large datasets can be challenging, these models can generate more images to aid in better
training of diagnostic tools.
 Anomaly detection. By gaining a deep understanding of what constitutes "normal" data, generative
models can efficiently identify anomalies or outliers. This is particularly useful in sectors like
finance, where spotting fraudulent transactions quickly is paramount.
 Flexibility. Generative models are versatile and can be employed in a range of learning scenarios,
including unsupervised, semi-supervised, and supervised learning. This adaptability makes them
suitable for a wide array of tasks.
 Personalization. These models can be tailored to generate content based on specific user preferences
or inputs. For example, in the entertainment industry, generative models can create personalized
music playlists or movie recommendations, enhancing user experience.
 Innovation in design. In fields like architecture or product design, generative models can propose
novel designs or structures, pushing the boundaries of creativity and innovation.
 Cost efficiency. By automating the creation of content or solutions, generative models can reduce the
costs associated with manual production or research, leading to more efficient processes in industries
like manufacturing or entertainment.

What are the Limitations of Generative Models?


While generative models are undeniably powerful and transformative, they are not without their
challenges. Here's an exploration of some of the constraints and challenges associated with these
models:

 Training complexity. Generative models, especially sophisticated ones like GANs, require
significant computational resources and time. Training them demands powerful hardware and can be
resource-intensive.
 Quality control. While they can produce vast amounts of data, ensuring the quality and realism of
the generated content can be challenging. For instance, a model might generate an image that looks
realistic at first glance but has subtle anomalies upon closer inspection.
 Overfitting. There's a risk that generative models can become too attuned to the training data,
producing outputs that lack diversity or are too closely tied to the input they've seen.
 Lack of interpretability. Many generative models, particularly deep learning-based ones, are often
seen as "black boxes." This means it can be challenging to understand how they make decisions or
why they produce specific outputs, which can be a concern in critical applications like healthcare.
 Ethical concerns. The ability of generative models to produce realistic content raises ethical issues,
especially in the creation of deep fakes or counterfeit content. Ensuring responsible use is paramount
to prevent misuse or deception.
 Data dependency. The quality of the generated output is heavily dependent on the quality of the
training data. If the training data is biased or unrepresentative, the model's outputs will reflect those
biases.
 Mode collapse. Particularly in GANs, there's a phenomenon called mode collapse where the
generator produces limited varieties of samples, reducing the diversity of the generated outputs.

How to use Generative Models for Data Science


Generative models like GPT-4 are transforming how data scientists approach their work. These
large language models can generate human-like text and code, allowing data scientists to be
more creative and productive. Here are some ways generative AI can be applied in data science.

Data Exploration
Generative models can summarize and explain complex data sets and results. By describing
charts, statistics, and findings in natural language, they help data scientists explore and
understand data faster. Models can also highlight insights and patterns that humans may miss.

Code Generation
For common data science tasks like data cleaning, feature engineering, and model building,
generative models can generate custom code. This automates repetitive coding work and allows
data scientists to iterate faster. Models can take high-level instructions and turn them into
functional Python or R or SQL code.

Report Writing
Writing reports and presentations to explain analyses is time-consuming. Generative models
like GPT-4 can draft reports by summarizing findings, visualizations, and recommendations in
coherent narratives. Data scientists can provide bullets and results, and AI will generate an initial
draft. It can also help you write data analytical reports which include necessary actionable insists
for a business to improve the business revenue.

Synthetic Data Generation


Generative models can create synthetic training data for machine learning models. This helps
when real data is limited or imbalanced. The synthetic data matches the patterns and distributions
of real data, allowing models to be trained effectively.

Generative classifiers
naive Bayes classifier and
linear discriminant analysis
Discriminative model
logistic regression
NAÏVE BAYES
Solved Example Naive Bayes Classifier to classify New Instance
PlayTennis Example Mahesh Huddar
D-data set
H –hypothesis space
Decision tree
-9/14 log(9/14)-5/14 log(5/14)=-9/14 * (ln(9/14)/ln(2) )-5/14* (ln(5/14)/ln(2)
Svm

You might also like