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.12k stars 4.15k forks source link

How spawn the checkpoints progressively so the AI agent can follow a preferred route? #5917

Closed mra16r closed 1 year ago

mra16r commented 1 year ago

I'm training a AI with ML legend, and I'm wondering if there's a way to spawn the checkpoints progressively so the AI can only see 1 checkpoint at a time, and complete the training easier.

Currently my checkpoints are scattered in a very non-linear way in my level. It has to go up an elevator, touch a checkpoint, then go back on the elevator to go back down, then exit the door.

It's very non-linear and has to go back on its way, and most of the time it just jumps down and falls over, and it resets the episode.

ARandomFrenchDev commented 1 year ago

Hi @mra16r , I don't think that's a question you should ask here, since it's more about how Unity works instead of how ML-Agents works. Either way, you could setup an array of checkpoints with a specific order, and the agent gets a positive reward if he goes through them in order, and a negative one if he skips one for instance.

miguelalonsojr commented 1 year ago

Please submit this question on the forum: https://forum.unity.com/forums/ml-agents.453/

github-actions[bot] commented 1 year 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.