这是indexloc提供的服务,不要输入任何密码
Skip to content

support observation normalization in BaseVectorEnv #308

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

Merged
merged 10 commits into from
Mar 11, 2021

Conversation

ChenDRAG
Copy link
Collaborator

@ChenDRAG ChenDRAG commented Mar 9, 2021

This pr aims to support observation normalization in BaseVectorEnv because it's crucial for benmarking on policy algoirthms. See #307 for more details.

@codecov-io
Copy link

codecov-io commented Mar 9, 2021

Codecov Report

Merging #308 (2f3f1ba) into master (5c53f8c) will decrease coverage by 0.63%.
The diff coverage is 46.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #308      +/-   ##
==========================================
- Coverage   94.00%   93.37%   -0.64%     
==========================================
  Files          51       51              
  Lines        3238     3277      +39     
==========================================
+ Hits         3044     3060      +16     
- Misses        194      217      +23     
Flag Coverage Δ
unittests 93.37% <46.51%> (-0.64%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tianshou/utils/statistics.py 67.27% <21.73%> (ø)
tianshou/env/venvs.py 90.78% <73.68%> (-2.77%) ⬇️
tianshou/utils/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c53f8c...2f3f1ba. Read the comment docs.

@ChenDRAG ChenDRAG requested review from youkaichao and Trinkle23897 and removed request for youkaichao March 9, 2021 08:32
@Trinkle23897 Trinkle23897 requested a review from danagi March 11, 2021 09:27
@ChenDRAG
Copy link
Collaborator Author

One thing to do is how do we save rms(obseravtion mean and std) since it is a part of policy? We can leave this problem till next pr or when we need this anyway

@ChenDRAG
Copy link
Collaborator Author

I'm okay with changes.

@Trinkle23897 Trinkle23897 merged commit 243ab43 into thu-ml:master Mar 11, 2021
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
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

Successfully merging this pull request may close these issues.

Plans of releasing mujoco benchmark of onpolicy algorithms(VPG, A2C, PPO)
4 participants