Mixing continuous / discrete space

How can I use continuous and discrete outputs at the same time? The “Actions Summary & Best Practices” section (link below) says: “Agents can use Discrete and/or Continuous actions”, suggesting that both can be used at the same time. But how?

I think you need to use Action Buffers which are only available in the more recent preview releases.

OK, thanks.

Support for mixing distributions was added in release 11 Release ML-Agents Release 11 · Unity-Technologies/ml-agents · GitHub (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.

1 Like