Generative vs discriminative models

Step 1 of 13 in Generative AI · Concept · Easy

Discriminative models learn p(label | input) to classify; generative models learn p(input) so they can create new samples.

Build it

  1. Same data, two models

    On 2D data, fit logistic regression and a per-class Gaussian; sample new points from the Gaussian model.

    Done when: You can show the generative model creating data and the discriminative one cannot.

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map