Skip to content

Instantly share code, notes, and snippets.

@AurelianTactics
Last active January 9, 2019 18:15
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 AurelianTactics/38fc8abeb1db5d44600b42bc57a79753 to your computer and use it in GitHub Desktop.
Save AurelianTactics/38fc8abeb1db5d44600b42bc57a79753 to your computer and use it in GitHub Desktop.
TRFL Target Network Updating: update_target_network_smalltau.py
#in graph
target_network_update_ops = trfl.update_target_variables(targetQN.get_qnetwork_variables(),
mainQN.get_qnetwork_variables(),tau=1.0/2000)
#in session
with tf.Session() as sess:
#....
for ep in range(1, train_episodes):
#...
#update target q network
sess.run(target_network_update_ops)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment