f48545b9f0a7c4f464db58eb20058ee05f765f82,tests/test_classifier.py,,test_fit_predict2,#Any#Any#,57

Before Change


@patch("autokeras.search.transform", side_effect=simple_transform2)
@patch("autokeras.search.ModelTrainer.train_model", side_effect=lambda: None)
def test_fit_predict2(_, _1):
    os.remove(os.path.join(constant.DEFAULT_SAVE_PATH, "classifier"))
    os.remove(os.path.join(constant.DEFAULT_SAVE_PATH, "searcher"))
    constant.MAX_ITER_NUM = 1
    constant.MAX_MODEL_NUM = 1
    constant.EPOCHS_EACH = 1
    train_x = np.random.rand(100, 25, 1)

After Change


@patch("autokeras.search.transform", side_effect=simple_transform2)
@patch("autokeras.search.ModelTrainer.train_model", side_effect=lambda: None)
def test_fit_predict2(_, _1):
    clear_dir()
    constant.MAX_ITER_NUM = 1
    constant.MAX_MODEL_NUM = 1
    constant.EPOCHS_EACH = 1
    train_x = np.random.rand(100, 25, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: f48545b9f0a7c4f464db58eb20058ee05f765f82
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: tests/test_classifier.py
Class Name:
Method Name: test_fit_predict2


Project Name: keras-team/autokeras
Commit Name: f48545b9f0a7c4f464db58eb20058ee05f765f82
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: tests/test_classifier.py
Class Name:
Method Name: test_fit_predict


Project Name: keras-team/autokeras
Commit Name: f48545b9f0a7c4f464db58eb20058ee05f765f82
Time: 2018-01-05
Author: jhfjhfj1@gmail.com
File Name: tests/test_classifier.py
Class Name:
Method Name: test_fit_predict2