MCPcopy Index your code
hub / github.com/bayesian-optimization/BayesianOptimization / test_y_max

Function test_y_max

tests/test_target_space.py:186–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185
186def test_y_max():
187 space = TargetSpace(target_func, PBOUNDS)
188 assert space._target_max() is None
189 space.probe(params={"p1": 1, "p2": 7})
190 space.probe(params={"p1": 0.5, "p2": 1})
191 space.probe(params={"p1": 0, "p2": 1})
192 assert space._target_max() == 8
193
194
195def test_y_max_with_constraint():

Callers

nothing calls this directly

Calls 3

_target_maxMethod · 0.95
probeMethod · 0.95
TargetSpaceClass · 0.90

Tested by

no test coverage detected