liveBook · Manning

Discriminator

As explained in Grokking Machine Learning

A discriminator is the component of a generative adversarial network that distinguishes real data from synthetic data.

Imagine asking, “Is this a real cat—or a convincing imitation?” In a generative adversarial network (GAN), the discriminator is the component that answers this question. It receives real images and synthetic images produced by the generator, then tries to tell them apart. section 10.5

During GAN training, the two networks work against each other:

  • The generator creates images intended to look real. section 10.5
  • The discriminator examines real images alongside generated images. section 10.5
  • As the competition continues, the generator can produce increasingly realistic images. section 10.5

Human faces

With a dataset of human faces, the discriminator distinguishes genuine faces from generated ones. Try the Which Face Is Real? challenge to test your own judgment. section 10.5

How Grokking Machine Learning covers it

How deep it goes
Defines the role and training inputs, but does not detail the discriminator’s architecture or objective.
Examples
Uses generated human faces and the Which Face Is Real? challenge to illustrate real-versus-fake judgments.
What you can do after
Evaluate generated images by attempting to distinguish them from real images.
How it connects
Connects the discriminator to GANs, generators, generative machine learning, and image generation.

Also explained in

Compare how 8 books explain discriminator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Machine Learning. The section links point to the parts of the book it draws on.