stable-baselines icon indicating copy to clipboard operation
stable-baselines copied to clipboard

DDPG and SAC for discrete action space.

Open soloist96 opened this issue 7 years ago • 4 comments

[question] Is there any reason why DDPG and SAC don't have the implementation for discrete action space? And will appreciate it there are any suggestions for applying the DDPG with continuous action space on the discrete one. Thanks!

soloist96 avatar Jul 26 '19 15:07 soloist96

Hello, For DDPG, you can already find an answer here: https://github.com/hill-a/stable-baselines/issues/37 For SAC, the implementation with discrete actions is not trivial and it was developed to be used on robots, so with continuous actions. Those are the main reason. Meanwhile, if you want to work with discrete actions, you have plenty of other algorithms that can do that (ACER, PPO, DQN, A2C, ACKTR, ...).

araffin avatar Jul 26 '19 15:07 araffin

It was more than a year ago. Any news on this topic recently @araffin ? It would be nice if SAC can take discrete action space input.

cosmir17 avatar Dec 05 '20 11:12 cosmir17

We have an issue about that in Stable-Baselines3 repo: https://github.com/DLR-RM/stable-baselines3/issues/157

But I would favor QR-DQN first in the contrib repo.

araffin avatar Dec 05 '20 11:12 araffin

Thank you for letting me know @araffin

cosmir17 avatar Dec 05 '20 12:12 cosmir17