Search code examples
unity-game-engineml-agent

How to indicate mlagents-learn which parameters to test


I am starting to discover ML-Agents in Unity, and have some working code with a cube moving in 2d. I have now implemented the detection of space key for the cube to jump. I would like to instruct mlagents-learn to test this space-key during simulation, or any other parameter. Where should this be done so that the ActionBuffers array gets properly filled?


Solution

  • OK, found it. I need to use a discrete branch with size of 2 (for ones and zeros), then apply it as jump.