Skip to content

Commit

Permalink
minor update to CMA-ES
Browse files Browse the repository at this point in the history
Former-commit-id: 6b9231e
  • Loading branch information
zuoxingdong committed May 14, 2019
1 parent 12e3d3a commit 2d2b34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baselines/cmaes/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def run(config, seed, device, logdir):
for generation in range(config['train.generations']):
start_time = time.perf_counter()
solutions = es.ask()
out = list(executor.map(fitness, solutions, chunksize=4))
out = list(executor.map(fitness, solutions, chunksize=2))
Rs, Hs = zip(*out)
es.tell(solutions, [-R for R in Rs])
logger = Logger()
Expand Down

0 comments on commit 2d2b34f

Please sign in to comment.