MCPcopy
hub / github.com/hyperopt/hyperopt / test_sample_deterministic

Function test_sample_deterministic

hyperopt/pyll/tests/test_stochastic.py:46–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def test_sample_deterministic():
47 aa = as_apply([0, 1])
48 print(aa)
49 dd = sample(aa, np.random.default_rng(3))
50 assert dd == (0, 1)
51
52
53def test_repeatable():

Callers

nothing calls this directly

Calls 2

as_applyFunction · 0.90
sampleFunction · 0.90

Tested by

no test coverage detected