MCPcopy
hub / github.com/hyperopt/hyperopt / config0

Function config0

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

Source from the content-addressed store, hash-verified

14
15
16def config0():
17 p0 = scope.uniform(0, 1)
18 p1 = scope.uniform(2, 3)
19 p2 = scope.one_of(-1, p0)
20 p3 = scope.one_of(-2, p1)
21 p4 = 1
22 p5 = [3, 4, p0]
23 p6 = scope.one_of(-3, p1)
24 d = locals()
25 d["p1"] = None # -- don't sample p1 all the time, only if p3 says so
26 s = as_apply(d)
27 return s
28
29
30def test_clone():

Callers 1

test_cloneFunction · 0.85

Calls 1

as_applyFunction · 0.90

Tested by

no test coverage detected