2e3ecf5ad4817912b14f8e17625aaa24185081c6,tests/autokeras/hypermodels/wrapper_test.py,,test_timeseries_block,#,53

Before Change


    block = graph_module.deserialize(graph_module.serialize(block))

    block.column_names = ["0", "1"]
    block.column_types = {
        "0": adapters.NUMERICAL,
        "1": adapters.NUMERICAL,
    }
    output = block.build(hp, ak.TimeseriesInput(shape=(32,), lookback=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=(32, 2), dtype=tf.float32),
        [],
    )
    assert isinstance(nest.flatten(outputs)[0], tf.Tensor)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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_timeseries_block


Project Name: microsoft/nni
Commit Name: 25db55caee4325b3b8ad3e3b48de76f349beeae6
Time: 2021-01-04
Author: 48014605+kvartet@users.noreply.github.com
File Name: docs/zh_CN/conf.py
Class Name:
Method Name:


Project Name: microsoft/nni
Commit Name: 5bf5e46c69328444ac777cabd8ddf5b412230771
Time: 2020-12-09
Author: Yuge.Zhang@microsoft.com
File Name: docs/en_US/conf.py
Class Name:
Method Name: