-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
state的形式 #185
Comments
n_features是什么含义 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 博主,
我的state是一个列表,初始值为[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],选择action时出错:TypeError: tuple indices must be integers or slices, not tuple
我认为state已经是(1, size_of_observation)形式了,就注释掉了,observation = observation[np.newaxis, :]
结果还是报错:
Before call eo.attach
action_value = self.sess.run(self.q_eval, feed_dict={self.s:observation})
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (15,) for Tensor 's:0', which has shape '(?, 5)'
有哪位已经跑过代码的大侠也来说说,谢谢!
The text was updated successfully, but these errors were encountered: