How to stop a Learning Agent when he reaches his goal?

SimoneDC01
Sat, 12 Jul 2025 21:33:01 +0000
Blueprint

Hi @Deathcalibur and everyone else,
I am a complete beginner in Learning Agents and I would like to ask some questions to get an help with my Master’s Thesis Project. I followed and implemented the provided tutorial about the Sports Car RL Agent, which gave me some understanding of the basic concepts. However, a lot of things are not still clear to me, like the following:
I want to implement a RL Agent which has to reach a particular goal (e.g. “Go to that position”). I tried to apply the same logic of the tutorial, but when the agent gets close to the goal point he starts “gravitating” or swinging around it in order to keep the reward as high as possible. I would like to manually “pause” the agent when he is reasonably close to the goal, and then switch on again his brain later when I need him to move towards the next goal. Which is the best practice to achieve this behavior? Do I have to add to the agent actions a boolean variable which tells him to stop if close enough to the goal? Or maybe do I have to stop the Agent in the manager, by pausing the “Run inference” mode? If the latter, can I still rely on the reward as a measure of “how much I am close to the goal”, even if the agent is not in Training phase anymore? I hope my question is understandable, but if it is not please tell me, so I can explain myself better. Thanks everyone in advance!

6 posts - 2 participants