Skip to content

Instantly share code, notes, and snippets.

@awjuliani
Last active March 14, 2019 04:58
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/25fcbab01a8ed98792af51db2c445f72 to your computer and use it in GitHub Desktop.
Save awjuliani/25fcbab01a8ed98792af51db2c445f72 to your computer and use it in GitHub Desktop.
#Add to network
keep_per = tf.placeholder(shape=None,dtype=tf.float32)
hidden = slim.dropout(hidden,keep_per)
keep = 0.5
Q_values = sess.run(Q_out,feed_dict={inputs:[state],keep_per:keep})
action = #Insert your favorite action-selection strategy with the sampled Q-values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment