Skip to content

Instantly share code, notes, and snippets.

@awjuliani
Created November 13, 2016 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awjuliani/ff851c080eb732ecefbdbda0a6a66753 to your computer and use it in GitHub Desktop.
Save awjuliani/ff851c080eb732ecefbdbda0a6a66753 to your computer and use it in GitHub Desktop.
e = 0.1
if np.random.rand(1) < e:
action = env.action_space.sample()
else:
Q_dist = sess.run(Q_out,feed_dict={inputs:[state]})
action = np.argmax(Q_dist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment