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

The actor networks cannot output negative values. #43

Closed
Aozaki-azk opened this issue Jun 15, 2024 · 2 comments
Closed

The actor networks cannot output negative values. #43

Aozaki-azk opened this issue Jun 15, 2024 · 2 comments

Comments

@Aozaki-azk
Copy link

你好,我在代码自定义环境中指定action_space范围为-1到1,但是网络输出的action只有0-1,请问是bug还是有其他地方需要配置
QQ20240615-224537

@Aozaki-azk
Copy link
Author

我当前使用的是maddpg,我用masac试了一下也不能输出负值

@wenzhangliu wenzhangliu changed the title 网络无法输出负值 The actor networks cannot output negative values. Jul 6, 2024
@wenzhangliu
Copy link
Collaborator

It is might because the activation function of the last layer in the actor-network is set as "sigmoid". In the newest version of XuanCe (v1.2.1), you can set the activation_action attribute to control the output range of actor networks.

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