What is the difference between a generative model and a discriminative model?

Experience Level: Junior
Tags: Artificial Intelligence

Answer

A generative model is a type of model that models the joint distribution of the input features and the target labels, and can be used to generate new samples from the same distribution.

A discriminative model models the conditional distribution of the target labels given the input features, and is used to classify new instances into one of several classes. The choice of whether to use a generative or discriminative model depends on the specific task and the availability of data.

Related Artificial intelligence (AI) job interview questions
Artificial intelligence (AI) for beginners
Artificial intelligence (AI) for beginners

Are you learning Artificial intelligence (AI) ? Try our test we designed to help you progress faster.

Test yourself