[rllib] A3C Configurations (#1370)

* initial introduction of a3c configs

* fix sample batch

* flake but need to check save

* save,resotre

* fix

* pickles

* entropy

* fix

* moving ppo

* results

* jenkins
This commit is contained in:
Richard Liaw
2017-12-24 12:25:13 -08:00
committed by Eric Liang
parent b217a5ef14
commit 4bb5b6bd5b
15 changed files with 164 additions and 113 deletions
+3 -2
View File
@@ -148,9 +148,10 @@ class AsyncSampler(threading.Thread):
self.policy = policy
self._obs_filter = obs_filter
self._obs_f_lock = threading.Lock()
self.start()
self.started = False
def run(self):
self.started = True
try:
self._run()
except BaseException as e:
@@ -213,7 +214,7 @@ class AsyncSampler(threading.Thread):
Returns:
rollout (PartialRollout): trajectory data (unprocessed)
"""
assert self.started, "Sampler never started running!"
rollout = self._pull_batch_from_queue()
return rollout