b1bfd16945a658d02847209e46a2ba8d72b456e1,tests/test_auto_model.py,,test_input_output_disconnect,#,57

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) == "Inputs and outputs not connected."


def test_hyper_graph_cycle(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) == "Inputs and outputs not connected."


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

Frequency: 3

Non-data size: 4

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_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_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_hyper_graph_cycle