Created
December 23, 2019 11:12
-
-
Save NMZivkovic/1ddde4f20f9d4cbc8a25a1c4acc1933f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter = tf.Variable(0) | |
agent = DqnAgent( | |
train_env.time_step_spec(), | |
train_env.action_spec(), | |
q_network = q_network, | |
optimizer = tf.compat.v1.train.AdamOptimizer(learning_rate=1e-3), | |
td_errors_loss_fn = common.element_wise_squared_loss, | |
train_step_counter = counter) | |
agent.initialize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment