Skip to content

Commit c902722

Browse files
committedMar 8, 2017
edit
1 parent 97cb6b8 commit c902722

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎Reinforcement_learning_TUT/5_Deep_Q_Network/DQN_modified.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
This part of code is the DQN brain, which is a brain of the agent.
3-
All decisions are made in here.
4-
Using Tensorflow to build the neural network.
2+
This part of code is the DQN brain.
3+
4+
view the tensorboard picture about this DQN structure on: https://morvanzhou.github.io/tutorials/machine-learning/reinforcement-learning/4-3-DQN3/#modification
55
66
View more on 莫烦Python: https://morvanzhou.github.io/tutorials/
77
@@ -80,6 +80,7 @@ def build_layers(s, c_names, n_l1, w_initializer, b_initializer):
8080
self.s_ = tf.placeholder(tf.float32, [None, self.n_features], name='s_') # input Next State
8181
self.r = tf.placeholder(tf.float32, [None, ], name='r') # input Reward
8282
self.a = tf.placeholder(tf.int32, [None, ], name='a') # input Action
83+
8384
# ------------------ build evaluate_net ------------------
8485
with tf.variable_scope('eval_net'):
8586
# c_names(collections_names) are the collections to store variables

0 commit comments

Comments
 (0)
Please sign in to comment.