ce7dc229bea184b9d606a1fe6a19a30c2c4a0d36,aae/adversarial_autoencoder.py,AdversarialAutoencoder,build_encoder,#AdversarialAutoencoder#,58
Before Change
def build_encoder(self):
// Encoder
encoder = Sequential()
encoder.add(Flatten(input_shape=self.img_shape))
encoder.add(Dense(512))
encoder.add(LeakyReLU(alpha=0.2))
encoder.add(BatchNormalization(momentum=0.8))
encoder.add(Dense(512))
encoder.add(LeakyReLU(alpha=0.2))
encoder.add(BatchNormalization(momentum=0.8))
encoder.add(Dense(self.encoded_dim))
After Change
h = LeakyReLU(alpha=0.2)(h)
mu = Dense(self.latent_dim)(h)
log_var = Dense(self.latent_dim)(h)
latent_repr = merge([mu, log_var],
mode=lambda p: p[0] + K.random_normal(K.shape(p[0])) * K.exp(p[1] / 2),
output_shape=lambda p: p[0])
return Model(img, latent_repr)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: eriklindernoren/Keras-GAN
Commit Name: ce7dc229bea184b9d606a1fe6a19a30c2c4a0d36
Time: 2018-05-11
Author: eriklindernoren@gmail.com
File Name: aae/adversarial_autoencoder.py
Class Name: AdversarialAutoencoder
Method Name: build_encoder
Project Name: eriklindernoren/Keras-GAN
Commit Name: ce7dc229bea184b9d606a1fe6a19a30c2c4a0d36
Time: 2018-05-11
Author: eriklindernoren@gmail.com
File Name: aae/adversarial_autoencoder.py
Class Name: AdversarialAutoencoder
Method Name: build_encoder
Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: e648c769cba51a96bc581be2e4d0e44bf958134d
Time: 2019-04-21
Author: gogasca@google.com
File Name: census/tf-keras/trainer/model.py
Class Name:
Method Name: create_keras_model
Project Name: inspirehep/magpie
Commit Name: 28b8b9d39f53d8327dbf658048a81b7046ae398f
Time: 2017-10-08
Author: stypka@spotify.com
File Name: magpie/nn/models.py
Class Name:
Method Name: cnn