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

Incorrect entropy calculation in MuJoCo's HalfCheetah environment when using active_masks #52

Open
Jinbo-He opened this issue Sep 19, 2024 · 1 comment

Comments

@Jinbo-He
Copy link

Jinbo-He commented Sep 19, 2024

Description

I've encountered a significant issue in the MuJoCo HalfCheetah environment related to entropy calculation when using active_mask. Specifically, the entropy is incorrectly summed across actions rather than being averaged, resulting in unusually high entropy values ranging from 6000 to 8000 in my tests using the HAPPO algorithm.

Impact on Rewards

Furthermore, this error in entropy calculation substantially affects the rewards obtained. With the flawed method of summing entropy, the observed rewards in my experiments peak at around 5000. However, when the entropy is correctly averaged, the rewards converge to about 7500.

Code

image
@Ivan-Zhong
Copy link
Collaborator

Hi, thank you for pointing it out. I will check the code as soon as possible.

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