b1bfd16945a658d02847209e46a2ba8d72b456e1,tests/test_auto_model.py,,test_input_missing,#Any#,100

Before Change


    output_node[0].shape = (1,)

    with pytest.raises(ValueError) as info:
        graph = ak.GraphAutoModel(input_node1, output_node, directory=tmp_dir)
        graph.build(kerastuner.HyperParameters())
    assert str(info.value).startswith("A required input is missing for HyperModel")


def test_auto_model_basic(tmp_dir):

After Change


    output_node = ak.RegressionHead()(output_node)

    with pytest.raises(ValueError) as info:
        ak.GraphAutoModel(input_node1, output_node, directory=tmp_dir)
    assert str(info.value).startswith("A required input is missing for HyperModel")


def test_auto_model_basic(tmp_dir):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 6

Instances


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: tests/test_auto_model.py
Class Name:
Method Name: test_input_missing


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: tests/test_auto_model.py
Class Name:
Method Name: test_input_output_disconnect


Project Name: keras-team/autokeras
Commit Name: b1bfd16945a658d02847209e46a2ba8d72b456e1
Time: 2019-07-01
Author: jhfjhfj1@gmail.com
File Name: tests/test_auto_model.py
Class Name:
Method Name: test_hyper_graph_cycle