28b8b9d39f53d8327dbf658048a81b7046ae398f,magpie/nn/models.py,,cnn,#,19
Before Change
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(output_length, activation="sigmoid"))
model.compile(
loss="binary_crossentropy",
optimizer="adam",
After Change
NB_FILTER = 256
NGRAM_LENGTHS = [1, 2, 3, 4, 5]
conv_layers, inputs = [], []
for ngram_length in NGRAM_LENGTHS:
current_input = Input(shape=(SAMPLE_LENGTH, embedding_size))
inputs.append(current_input)

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
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: inspirehep/magpie
Commit Name: 2a98094ba6ef75e8162773c6dc7a2f5ae0c458bf
Time: 2016-01-25
Author: jan.stypka@cern.ch
File Name: magpie/nn/models.py
Class Name:
Method Name: build_cnn_model