MCPcopy
hub / github.com/hyperopt/hyperopt / test_remove_allpaths

Function test_remove_allpaths

hyperopt/tests/unit/test_pyll_utils.py:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def test_remove_allpaths():
66 z = hp.uniform("z", 0, 10)
67 a = hp.choice("a", [z + 1, z - 1])
68 hps = {}
69 expr_to_config(a, (True,), hps)
70 aconds = hps["a"]["conditions"]
71 zconds = hps["z"]["conditions"]
72 assert aconds == {(True,)}, aconds
73 assert zconds == {(True,)}, zconds
74
75
76def test_remove_allpaths_int():

Callers

nothing calls this directly

Calls 1

expr_to_configFunction · 0.90

Tested by

no test coverage detected