It earns a place when
- Use GANs when sharp samples and adversarial distribution matching are useful and you can monitor training carefully.
- You can evaluate it against a credible baseline.
- Its output fits the decision and data constraints.
Machine learning models · Phase 5 · Lesson 43
Understand the generator-discriminator game and why GAN training can be powerful but unstable.
Understand the generator-discriminator game and why GAN training can be powerful but unstable.
A generator makes samples. A discriminator tries to distinguish real from generated samples. Each improves in response to the other.
The original GAN objective is a minimax game between discriminator D and generator G. In practice, variants alter losses, architectures and regularisation to improve gradient behaviour.
A generator can learn to produce plausible faces from random vectors, but it may collapse to a few styles if the discriminator gives unhelpful feedback.
When a result looks surprisingly good, inspect the split, target timing, error slices and data-generating process before celebrating.
Use this as a small experiment rather than a recipe to copy blindly. Change one thing, record the result and explain the change.
Answer from memory first. The buttons reveal feedback, but the durable step is explaining why.
1. What does the discriminator do?
2. What is mode collapse?
3. Why is discriminator accuracy insufficient?
Generative Adversarial Nets. Use the source for the deeper treatment after you can explain the lesson's core idea without looking.