The MNIST Discriminator

Learn about defining and testing the MNIST discriminator class.

MNIST discriminator

The discriminator in a GAN is a classifier, and we’ve already built a classifier for MNIST images. In fact, that MNIST classifier’s code was almost identical to the discriminator we used for the 1010 pattern GAN. The only difference was the size of the neural network.

📝 Here we can copy the code for the 1010 GAN discriminator we just developed. The only changes we need to make are to the neural network layer sizes.

Get hands-on with 1200+ tech skills courses.