Closed nanli42 closed 5 years ago
Hi @nanli42, Thanks for your contribution.
I will test it and tell you. Thank you for your interest.
Gilbert.
@nanli42
Thank you for your comments. We will take them into consideration when we release the next update (ROS 2 Dashing Diademata)
Thank you very much, Ryan
Hello,
In the main function in "turtlebot3_machine_learning/turtlebot3_dqn/nodes/turtlebot3_dqnstage*", there are some possible improvements for the code:
if e % 10 == 0:
could be better outside the loopfor t in range(agent.episode_step)
, otherwise only the last operation would be valid since the e value has no change.target_update
. Thus it is better to moverospy.loginfo("UPDATE TARGET NETWORK")
toif done:
. Or if we need to update it everytarget_update
, the code lineagent.updateTargetModel()
should be need to be moved afterif global_step % agent.target_update == 0:
.Thanks in advance! :) Nan