Commit 699919f1 authored by John Schulman's avatar John Schulman Committed by GitHub
Browse files

Merge pull request #64 from jhumplik/master

Use standardized advantages in trpo.
parents 498b4cfe 4862140c
......@@ -207,7 +207,7 @@ def learn(env, policy_func, *,
if hasattr(pi, "ret_rms"): pi.ret_rms.update(tdlamret)
if hasattr(pi, "ob_rms"): pi.ob_rms.update(ob) # update running mean/std for policy
args = seg["ob"], seg["ac"], seg["adv"]
args = seg["ob"], seg["ac"], atarg
fvpargs = [arr[::5] for arr in args]
def fisher_vector_product(p):
return allmean(compute_fvp(p, *fvpargs)) + cg_damping * p
......@@ -288,4 +288,4 @@ def learn(env, policy_func, *,
def flatten_lists(listoflists):
return [el for list_ in listoflists for el in list_]
\ No newline at end of file
return [el for list_ in listoflists for el in list_]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment