Training the discriminator

The discriminator is a classification neural network and we can train it in the usual way, that is, using gradient descent and backpropagation. However, the training set is composed of real and generated samples. Let's learn how to incorporate that in the training process:

  1. Depending on the input sample (real or fake), we have two paths:
    • Select the sample from the real data, , and use it to produce .
    • Generate a fake sample, . Here, the generator and discriminator work as a single network. We start with a random vector, ...

Get Advanced Deep Learning with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.