28b8b9d39f53d8327dbf658048a81b7046ae398f,magpie/nn/models.py,,cnn,#,19
Before Change
model = Sequential()
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: philipperemy/keras-tcn
Commit Name: 0cfe82c6beb9a28a5ff7da81b86fa0e93c388f14
Time: 2019-11-20
Author: premy@cogent.co.jp
File Name: tasks/save_reload_model.py
Class Name:
Method Name:
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