-
Hi, I have two questions regarding the on_episode_end() method:
Thanks and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi, @liuzuxin
To be honest, it is not necessary to call
It is better to implement the functionality outside instead of rewriting If you still have any questions, please feel free to ask us. |
Beta Was this translation helpful? Give feedback.
-
[FYI] The class has two internal replay buffers. The one ( |
Beta Was this translation helpful? Give feedback.
-
Could not be the case that "on_episode_end" method is always consident with a terminal state, e.g., when done=True? So this method should always be used when done=True? In that case, the flag done=True when inserting into buffer should be the trigger of on_episode_end() method ? |
Beta Was this translation helpful? Give feedback.
Hi, @liuzuxin
To be honest, it is not necessary to call
on_episode_end()
when you don't use the Nstep feature, or any of memory compress features (aka.next_of
etc.).However, as a rule, we assume users always call
on_episode_end()
at the end of every episode, so that it is possible that we will add some functionalities in the method and you will get bug if you don't call it.