e9aa6a5ebe3468f6413ef15ddde128725139abe9,tests/keras/test_callbacks.py,,test_TensorBoard,#Any#,325
Before Change
// fit with validation data
model.fit(X_train, y_train, batch_size=batch_size,
validation_data=(X_test, y_test) , callbacks=cbks, epochs=3)
// fit with validation data and accuracy
model.fit(X_train, y_train, batch_size=batch_size,
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"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: 2a4f6b942db5da321c627ebc1f0ca448bf491556
Time: 2016-04-01
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_activity_regularization
Project Name: keras-team/autokeras
Commit Name: 0a80b9769115d291f15c244429793eda4cb8ecad
Time: 2017-12-28
Author: jhfjhfj1@gmail.com
File Name: tests/test_layer_transformer.py
Class Name:
Method Name: test_conv_to_wider_layer