In a generative adversarial network (GAN), what is the role of the discriminator?
-
A
To generate realistic synthetic samples
-
B
To distinguish between real and generated samples
-
C
To encode input images into a latent space
-
D
To decode latent vectors into images