a33f747920882f6cd857bbdb50050ea360a6f366,tests/integration_tests/functional_api_test.py,,test_image_blocks,#Any#,69

Before Change



def test_image_blocks(tmp_path):
    num_instances = 10
    (x_train, y_train), (x_test, y_test) = mnist.load_data()
    x_train = x_train[:num_instances]
    y_train = y_train[:num_instances]

After Change


def test_image_blocks(tmp_path):
    num_instances = 10
    x_train = utils.generate_data(num_instances=num_instances, shape=(28, 28))
    y_train = np.random.randint(0, 10, num_instances)

    input_node = ak.ImageInput()
    output = ak.Normalization()(input_node)
    output = ak.ImageAugmentation()(output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: a33f747920882f6cd857bbdb50050ea360a6f366
Time: 2020-11-19
Author: jhfjhfj1@gmail.com
File Name: tests/integration_tests/functional_api_test.py
Class Name:
Method Name: test_image_blocks


Project Name: jhfjhfj1/autokeras
Commit Name: 0ff5e51fc622f02e1c434ad10642f03e36168433
Time: 2020-11-11
Author: jhfjhfj1@gmail.com
File Name: tests/autokeras/engine/tuner_test.py
Class Name:
Method Name: test_preprocessing_adapt_with_text_vec