e9aa6a5ebe3468f6413ef15ddde128725139abe9,tests/keras/test_callbacks.py,,test_TensorBoard,#Any#,325

Before Change


                yield {"X_vars": X_test, "output": y_test}

    // case 1 Sequential
    model = Sequential()
    model.add(Dense(num_hidden, input_dim=input_dim, activation="relu"))
    model.add(Dropout(0.1))
    model.add(Dense(num_class, activation="softmax"))
    model.compile(loss="categorical_crossentropy",
                  optimizer="sgd",
                  metrics=["accuracy"])

After Change


            i += 1
            i = i % max_batch_index

    inp = Input((input_dim,))
    hidden = Dense(num_hidden, activation="relu")(inp)
    hidden = Dropout(0.1)(hidden)
    output = Dense(num_class, activation="softmax")(hidden)
    model = Model(inputs=inp, outputs=output)
    model.compile(loss="categorical_crossentropy",
                  optimizer="sgd",
                  metrics=["accuracy"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: keras-team/keras
Commit Name: e9aa6a5ebe3468f6413ef15ddde128725139abe9
Time: 2017-07-18
Author: gokcen.eraslan@gmail.com
File Name: tests/keras/test_callbacks.py
Class Name:
Method Name: test_TensorBoard


Project Name: keras-team/keras
Commit Name: c3b512fa98f0c560ec59a73858057bc4decab75e
Time: 2017-10-11
Author: ozabluda@gmail.com
File Name: examples/mnist_siamese.py
Class Name:
Method Name: create_base_network


Project Name: keras-team/autokeras
Commit Name: b80fb3bdcfeac64d91b7365be1196392e013dcb8
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: autokeras/generator.py
Class Name: DefaultClassifierGenerator
Method Name: generate