Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
46
def
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
53
def
test_repeatable():
Callers
nothing calls this directly
Calls
2
as_apply
Function · 0.90
sample
Function · 0.90
Tested by
no test coverage detected