2e3ecf5ad4817912b14f8e17625aaa24185081c6,tests/autokeras/hypermodels/wrapper_test.py,,test_structured_data_block,#,33

Before Change


        "0": adapters.CATEGORICAL,
        "1": adapters.CATEGORICAL,
    }
    hp = kerastuner.HyperParameters()

    block = graph_module.deserialize(graph_module.serialize(block))
    block.column_names = ["0", "1"]
    block.column_types = {
        "0": adapters.CATEGORICAL,
        "1": adapters.CATEGORICAL,
    }
    output = block.build(hp, ak.StructuredDataInput(shape=(2,)).build())

    assert isinstance(output, tf.Tensor)

After Change


        "0": adapters.NUMERICAL,
        "1": adapters.NUMERICAL,
    }
    outputs = utils.block_basic_exam(
        block,
        tf.keras.Input(shape=(2,), dtype=tf.string),
        [],
    )
    assert isinstance(nest.flatten(outputs)[0], tf.Tensor)


def test_timeseries_block():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 19

Instances


Project Name: jhfjhfj1/autokeras
Commit Name: 2e3ecf5ad4817912b14f8e17625aaa24185081c6
Time: 2020-05-20
Author: jin@tamu.edu
File Name: tests/autokeras/hypermodels/wrapper_test.py
Class Name:
Method Name: test_structured_data_block


Project Name: keras-team/autokeras
Commit Name: 2e3ecf5ad4817912b14f8e17625aaa24185081c6
Time: 2020-05-20
Author: jin@tamu.edu
File Name: tests/autokeras/hypermodels/wrapper_test.py
Class Name:
Method Name: test_structured_data_block


Project Name: jhfjhfj1/autokeras
Commit Name: 2e3ecf5ad4817912b14f8e17625aaa24185081c6
Time: 2020-05-20
Author: jin@tamu.edu
File Name: tests/autokeras/hypermodels/wrapper_test.py
Class Name:
Method Name: test_timeseries_block