Skip to content

Commit

Permalink
Showing off
Browse files Browse the repository at this point in the history
  • Loading branch information
csxeba committed Oct 26, 2017
1 parent 55cd1d1 commit 3513e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions xperiments/xp_qcartpole.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def run(agent, **kw):
step = 0
reward = None
for step in range(1, 201):
env.render()
action = agent.sample(state, reward)
state, reward, done, info = env.step(action)
if done:
Expand Down
2 changes: 1 addition & 1 deletion xperiments/xp_sin.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
vcost = net.cost(vpred, vY) / len(vpred)
tobj.set_data(tX, tpred)
vobj.set_data(vX, vpred)
plt.pause(0.01)
plt.pause(0.1)
t.set_text(templ.format(batchno, tcost, vcost))
batchno += 1

0 comments on commit 3513e66

Please sign in to comment.