Skip to content

Commit

Permalink
Fix spec side effects, commit benchmark files (#178)
Browse files Browse the repository at this point in the history
* add benchmark spec files

* make dqn polyak

* specify resources

* update demo spec

* Updating a2c gae specs

* Update max cpus for a2c cartpole

* speedrun

* lower trial

* try save deepcopy of spec and info_space

* lower trial

* Updated a2c mlp specs

* Switch nstep separate to linear decay

* ramp up trial. problem confirmed fixed

* update lunar a2c search specs

* cleanup cartpole and lunar benchmark specs

* update demo spec to good params

* update decay spec
  • Loading branch information
kengz committed Sep 23, 2018
1 parent 3979e97 commit 2f146ae
Show file tree
Hide file tree
Showing 5 changed files with 8,871 additions and 8 deletions.
4 changes: 2 additions & 2 deletions slm_lab/experiment/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def parallelize_sessions(self, global_nets=None):
workers = []
for _s in range(self.spec['meta']['max_session']):
self.info_space.tick('session')
w = mp.Process(target=self.mp_runner, args=(deepcopy(self.spec), self.info_space, global_nets))
w = mp.Process(target=self.mp_runner, args=(deepcopy(self.spec), deepcopy(self.info_space), global_nets))
w.start()
workers.append(w)
for w in workers:
Expand All @@ -194,7 +194,7 @@ def run_sessions(self):
session_datas = []
for _s in range(self.spec['meta']['max_session']):
self.info_space.tick('session')
session = self.SessionClass(self.spec, self.info_space)
session = self.SessionClass(deepcopy(self.spec), deepcopy(self.info_space))
session_data = session.run()
session_datas.append(session_data)
if analysis.is_unfit(session_data):
Expand Down

0 comments on commit 2f146ae

Please sign in to comment.