Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def _build_discriminator_model(self):
print("Building Discriminator...")
discriminator_input = Input(shape=(self.latent_dimension,))
discriminator_sequence = Dense(512, input_dim=self.latent_dimension)(discriminator_input)
discriminator_sequence = LeakyReLU(alpha=0.2)(discriminator_sequence)
discriminator_sequence = Dense(256)(discriminator_sequence)
discriminator_sequence = LeakyReLU(alpha=0.2)(discriminator_sequence)
discriminator_sequence = Dense(1, activation="sigmoid")(discriminator_sequence)
self.discriminator_model = Model(discriminator_input, discriminator_sequence, name = 'discriminator')
self.decoder_generator_model.summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment