Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何将动作值转换为one-hot编码 #31

Open
shswdmx1 opened this issue Mar 27, 2024 · 1 comment
Open

如何将动作值转换为one-hot编码 #31

shswdmx1 opened this issue Mar 27, 2024 · 1 comment

Comments

@shswdmx1
Copy link

我自定义了一个多智能体环境,在奖励函数中需要用到动作的具体值,比如我的动作空间是离散的,我需要得到0,1,2这样具体的值,但是我在使用mappo算法跑的时候发现动作并不是具体的值,请问如何修改呢?
Uploading 1711528960680.png…

@wenzhangliu
Copy link
Collaborator

PPO输出动作分布,从分布中采样动作,既然是离散动作,那就是一个离散分布,选Categorical一类的policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants