736ba6c6873290fdae110395040f76ba7ab0ff19,tests/test_net_transformer.py,,test_net_transformer,#,3

Before Change



def test_net_transformer():
    model_a = Sequential()
    model_a.add(Conv2D(32, (3, 3), activation="relu", input_shape=(28, 28, 1)))
    model_a.add(Conv2D(32, (3, 3), activation="relu"))
    model_a.add(MaxPooling2D(pool_size=(2, 2)))
    model_a.add(Dropout(0.25))

After Change


    model.add(Flatten())
    model.add(Dense(128, activation="relu"))
    model.add(Dropout(0.5))
    model.add(Dense(10, activation="softmax"))
    //ßprint(model.summary())
    model.compile(loss=categorical_crossentropy,
                  optimizer=Adadelta(),
                  metrics=["accuracy"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: keras-team/autokeras
Commit Name: 736ba6c6873290fdae110395040f76ba7ab0ff19
Time: 2017-12-17
Author: wangtaoo665@gmail.com
File Name: tests/test_net_transformer.py
Class Name:
Method Name: test_net_transformer


Project Name: keras-team/keras
Commit Name: b5a02391e003c33c8f8258a7e3d0736503c3c048
Time: 2017-03-15
Author: farizrahman4u@gmail.com
File Name: examples/babi_memnn.py
Class Name:
Method Name:


Project Name: NTMC-Community/MatchZoo
Commit Name: a8de441893bd481557e60d2faa089f0750384fcf
Time: 2018-12-27
Author: 948280670@qq.com
File Name: matchzoo/models/cdssm_model.py
Class Name: CDSSMModel
Method Name: get_default_params