607635d2ce421d77eea96dc3eb9c9a592ac312bc,tests/test_model_saving.py,,test_saving_right_after_compilation,#,116

Before Change


    model.compile(loss="mse", optimizer="sgd", metrics=["acc"])
    model.model._make_train_function()

    fname = "tmp_" + str(np.random.randint(10000)) + ".h5"
    save_model(model, fname)
    model = load_model(fname)
    os.remove(fname)

After Change


    model.compile(loss="mse", optimizer="sgd", metrics=["acc"])
    model.model._make_train_function()

    _, fname = tempfile.mkstemp(".h5")
    save_model(model, fname)
    model = load_model(fname)
    os.remove(fname)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: keras-team/keras
Commit Name: 607635d2ce421d77eea96dc3eb9c9a592ac312bc
Time: 2016-09-06
Author: acordero@gmail.com
File Name: tests/test_model_saving.py
Class Name:
Method Name: test_saving_right_after_compilation


Project Name: keras-team/keras
Commit Name: 607635d2ce421d77eea96dc3eb9c9a592ac312bc
Time: 2016-09-06
Author: acordero@gmail.com
File Name: tests/test_model_saving.py
Class Name:
Method Name: test_sequential_model_saving


Project Name: keras-team/keras
Commit Name: 607635d2ce421d77eea96dc3eb9c9a592ac312bc
Time: 2016-09-06
Author: acordero@gmail.com
File Name: tests/test_model_saving.py
Class Name:
Method Name: test_saving_without_compilation


Project Name: keras-team/keras
Commit Name: 607635d2ce421d77eea96dc3eb9c9a592ac312bc
Time: 2016-09-06
Author: acordero@gmail.com
File Name: tests/test_model_saving.py
Class Name:
Method Name: test_fuctional_model_saving


Project Name: keras-team/keras
Commit Name: 607635d2ce421d77eea96dc3eb9c9a592ac312bc
Time: 2016-09-06
Author: acordero@gmail.com
File Name: tests/test_model_saving.py
Class Name:
Method Name: test_sequential_model_saving_2