Skip to content

Instantly share code, notes, and snippets.

@simoninithomas
Created June 24, 2018 09:13
Show Gist options
  • Select an option

  • Save simoninithomas/44b86b7a2a8f3696bacf1d4110830a23 to your computer and use it in GitHub Desktop.

Select an option

Save simoninithomas/44b86b7a2a8f3696bacf1d4110830a23 to your computer and use it in GitHub Desktop.
# Get Q values for next_state
Qs_next_state = sess.run(TargetNetwork.output, feed_dict = {TargetNetwork.inputs_: next_states_mb})
...
if tau > max_tau:
# Update the parameters of our TargetNetwork with DQN_weights
update_target = update_target_graph()
sess.run(update_target)
tau = 0
print("Model updated")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment