Skip to content

Instantly share code, notes, and snippets.

Created January 19, 2019 14:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment