Artificial Intelligence, Machine Learning, Data Science, Reinforcement Learning, OpenAI.
tf.cast(tf.gather(q_values1,actions_,axis=1,batch_dims=1),tf.float64) _,q_value2 = model(next_states_) q_value2 = tf.cast(tf.reduce_max(q_value2),tf.float64) target_value = tf.cast(rewards_,tf.float64) + (tf.cast(1,tf.float64)-tf.cast(dones,tf.float64))*gamma*q_value2 value_loss =