28b8b9d39f53d8327dbf658048a81b7046ae398f,magpie/nn/models.py,,cnn,#,19
Before Change
model.add(Merge(conv_layers, mode="concat"))
model.add(Dropout(0.5))
model.add(Flatten())
model.add(Dense(output_length, activation="sigmoid"))
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: 3
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: UFAL-DSG/tgen
Commit Name: 440a1edb391d097681c6abc43d110cec2eabc9fd
Time: 2015-07-15
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank_nn.py
Class Name: EmbNNRanker
Method Name: _init_neural_network
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