Human-in-the-loop-Deep-Reinforcement-Learning icon indicating copy to clipboard operation
Human-in-the-loop-Deep-Reinforcement-Learning copied to clipboard

论文程序请教

Open jelly-961 opened this issue 1 year ago • 2 comments

吴同学,

您好!

您发表的论文《Toward human-in-the-loop AI: Enhancing deep reinforcement learning via real-time human guidance for autonomous driving》十分精彩。也非常感谢您无私的分享了论文的相关程序,我在学习您的算法时,可能发现了程序的一个小问题。主要是当算法训练的一个episode结束后,需要更新replay memory buffer时,errors在脚本中没有被定义。我附上了相应的报错信息。

File "...\TD3_based_DRL\TD3.py", line 115, in learn self.memory.batch_update(tree_idx, abs(errors.detach().cpu().numpy()) ) NameError: name 'errors' is not defined

不知您是否有空看一看程序这个部分?非常感谢您的帮助。

jelly-961 avatar Nov 29 '22 14:11 jelly-961