41542e4390b3de8beac4222a9e58925e56c872a5,tests/autokeras/auto_model_test.py,,test_overwrite,#Any#Any#,77

Before Change


    x_train = np.random.rand(100, 32, 32, 3)
    y_train = np.random.rand(100, 1)

    auto_model = ak.AutoModel(ak.ImageInput(),
                              ak.RegressionHead(),
                              directory=tmp_path,
                              max_trials=2,
                              overwrite=False)
    auto_model.fit(x_train, y_train, epochs=2, validation_data=(x_train, y_train))
    assert not tuner_class.call_args_list[0][1]["overwrite"]

After Change


    x_train = np.random.rand(100, 32, 32, 3)
    y_train = np.random.rand(100, 1)

    auto_model = get_single_io_auto_model(tmp_path)
    auto_model.fit(x_train, y_train, epochs=2, validation_data=(x_train, y_train))
    assert not tuner_class.call_args_list[0][1]["overwrite"]

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: keras-team/autokeras
Commit Name: 41542e4390b3de8beac4222a9e58925e56c872a5
Time: 2020-05-24
Author: jin@tamu.edu
File Name: tests/autokeras/auto_model_test.py
Class Name:
Method Name: test_overwrite


Project Name: jhfjhfj1/autokeras
Commit Name: 41542e4390b3de8beac4222a9e58925e56c872a5
Time: 2020-05-24
Author: jin@tamu.edu
File Name: tests/autokeras/auto_model_test.py
Class Name:
Method Name: test_overwrite


Project Name: jhfjhfj1/autokeras
Commit Name: 41542e4390b3de8beac4222a9e58925e56c872a5
Time: 2020-05-24
Author: jin@tamu.edu
File Name: tests/autokeras/auto_model_test.py
Class Name:
Method Name: test_export_model