MCPcopy
hub / github.com/hyperopt/hyperopt / test_clone

Function test_clone

hyperopt/tests/unit/test_vectorize.py:30–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_clone():
31 config = config0()
32 config2 = clone(config)
33
34 nodeset = set(dfs(config))
35 assert not any(n in nodeset for n in dfs(config2))
36
37 foo = recursive_set_rng_kwarg(config, scope.rng_from_seed(5))
38 r = rec_eval(foo)
39 print(r)
40 r2 = rec_eval(recursive_set_rng_kwarg(config2, scope.rng_from_seed(5)))
41
42 print(r2)
43 assert r == r2
44
45
46def test_vectorize_trivial():

Callers

nothing calls this directly

Calls 5

cloneFunction · 0.90
dfsFunction · 0.90
recursive_set_rng_kwargFunction · 0.90
rec_evalFunction · 0.90
config0Function · 0.85

Tested by

no test coverage detected