b4bdc5a0fae205c0a53871ae94503ab9fa0ae92f,tests/keras/test_sequential_model.py,,test_sequential,#,71
Before Change
model.train_on_batch(X_train[:32], y_train[:32])
gen_loss = model.evaluate_generator(data_generator(True), 256)
loss = model.evaluate(X_test, y_test)
model.predict(X_test, verbose=0)
After Change
loss = model.evaluate(X_test, y_test)
prediction = model.predict_generator(data_generator(X_test, y_test), X_test.shape[0])
gen_loss = model.evaluate_generator(data_generator(X_test, y_test, 50), X_test.shape[0])
pred_loss = K.eval(K.mean(objectives.get(model.loss)(K.variable(y_test), K.variable(prediction))))
assert(np.isclose(pred_loss, loss))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: b4bdc5a0fae205c0a53871ae94503ab9fa0ae92f
Time: 2016-04-06
Author: michael.d.oliver@gmail.com
File Name: tests/keras/test_sequential_model.py
Class Name:
Method Name: test_sequential
Project Name: keras-team/keras
Commit Name: adfec1e8440b3af64b642ea75bdb21bbee70cc80
Time: 2018-09-20
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/test_callbacks.py
Class Name:
Method Name: test_TensorBoard
Project Name: keras-team/keras
Commit Name: adfec1e8440b3af64b642ea75bdb21bbee70cc80
Time: 2018-09-20
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/test_callbacks.py
Class Name:
Method Name: test_CallbackValData
Project Name: keras-team/keras
Commit Name: adfec1e8440b3af64b642ea75bdb21bbee70cc80
Time: 2018-09-20
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/test_callbacks.py
Class Name:
Method Name: test_TensorBoard_multi_input_output
Project Name: keras-team/keras
Commit Name: adfec1e8440b3af64b642ea75bdb21bbee70cc80
Time: 2018-09-20
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/test_callbacks.py
Class Name:
Method Name: test_TensorBoard_histogram_freq_must_have_validation_data