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


    conv_layers, inputs = [], []

    for ngram_length in NGRAM_LENGTHS:
        current_input = Input(shape=(SAMPLE_LENGTH, embedding_size))
        inputs.append(current_input)

        convolution = Conv1D(
Italian Trulli
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: oarriaga/face_classification
Commit Name: 0290f4d9fa3a60b8414a71994a77cb7bcdeb3c20
Time: 2017-05-03
Author: arriaga.camargo@gmail.com
File Name: gender/models.py
Class Name:
Method Name: attention_CNN


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: rnn