Step 2 – model definition

The model is very simple in this case:

def model(self):
model = Sequential()
model.add(self.Generator)
model.add(self.Discriminator)
return model

Use a sequential model with the generator as the first piece and the discriminator as the second. The GAN model will then take in a latent sample and output a probability regarding whether it belongs to that class or not.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.34.146