MCPcopy
hub / github.com/facebookresearch/nevergrad / test_parallel_es

Function test_parallel_es

nevergrad/optimization/test_optimizerlib.py:745–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

743
744@testing.suppress_nevergrad_warnings()
745def test_parallel_es() -> None:
746 opt = optlib.EvolutionStrategy(popsize=3, offsprings=None)(4, budget=20, num_workers=5)
747 for k in range(35):
748 cand = opt.ask() # asking should adapt to the parallelization
749 if not k:
750 opt.tell(cand, 1)
751
752
753class QuadFunction:

Callers

nothing calls this directly

Calls 2

askMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…