Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Mixing continuous / discrete space

Discussion in 'ML-Agents' started by RankNFyle, Apr 9, 2021.

  1. RankNFyle

    RankNFyle

    Joined:
    Jan 4, 2021
    Posts:
    31
    Last edited: Apr 10, 2021
  2. wx3labs

    wx3labs

    Joined:
    Apr 5, 2014
    Posts:
    77
    I think you need to use Action Buffers which are only available in the more recent preview releases.
     
  3. RankNFyle

    RankNFyle

    Joined:
    Jan 4, 2021
    Posts:
    31
    OK, thanks.
     
  4. andrewcoh_unity

    andrewcoh_unity

    Unity Technologies

    Joined:
    Sep 5, 2019
    Posts:
    162
    Support for mixing distributions was added in release 11 https://github.com/Unity-Technologies/ml-agents/releases/tag/release_11 (and any release after that will support it).

    You will be able to specify both continuous and discrete action spaces in the BehaviorParameters script and your functions will take ActionBuffers objects which will have DiscreteActions and ContinuousActions fields.
     
    Dreamer89 likes this.