openai / maddpg

Code for the MADDPG algorithm from the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
1.59k stars 484 forks source link

How to turn continuous action into discrete action #54

Open Sexu121 opened 3 years ago

Sexu121 commented 3 years ago

In the source code, I saw some code about discrete actions. I changed act_space=MultiDiscrete() to spaces.Discrete(), but the output actions were not expected discrete numbers, but decimals, which made me unable to perform my discrete actions

2197808908a commented 1 month ago

please see https://pettingzoo.farama.org/environments/mpe/