Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.19k stars 4.16k forks source link

Why "AgentReset" is called in the "Waker" of sample? #2882

Closed ganyoginko closed 5 years ago

ganyoginko commented 5 years ago

I study in the Waker of sample environment. But I do not understand this function "AgentReset" in the walker's wakerAgent.cs.

This cs file is don't have Done(), so I think AgentReset is never called. But actually called when agents fall on the ground. I cannot find where it is called. And also I understand the relationships between MaxStep and AgentReset. why it is called?

I am very grateful to be able to use MLagents.

ganyoginko commented 5 years ago

I find a answer for this. When hand collision with ground, it's called that /sharedAsseet/scripts/GroundContact.cs. This file contain Agent.Done(). I must need more learning. Thanks.

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.