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

fix(onpolicy_adapter): fix the calculation of last state value #164

Merged
merged 34 commits into from
Mar 20, 2023

Conversation

muchvo
Copy link
Collaborator

@muchvo muchvo commented Mar 19, 2023

Description

The #162, exist some bugs.

Motivation and Context

Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
You can use the syntax close #15213 if this solves the issue #15213

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds core functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (update in the documentation)

Implemented Tasks

  • Subtask 1
  • Subtask 2
  • Subtask 3

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • I have read the CONTRIBUTION guide. (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly. (required for a bug fix or a new feature)
  • I have updated the documentation accordingly.
  • I have reformatted the code using make format. (required)
  • I have checked the code using make lint. (required)
  • I have ensured make test pass. (required)

rockmagma02 and others added 24 commits March 15, 2023 02:53
Co-authored-by: borong <borongzh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <rockmagma02@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <rockmagma02@gmail.com>
Co-authored-by: zmsn-2077 <73586554+zmsn-2077@users.noreply.github.com>
Co-authored-by: borong <borongzh@gmail.com>
Co-authored-by: friedmainfunction <73703265+friedmainfunction@users.noreply.github.com>
…nment#147)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…thms (PKU-Alignment#148)

Co-authored-by: borong <borongzh@gmail.com>
Co-authored-by: Gaiejj <524339208@qq.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: zmsn-2077 <jiamg.ji@gmail.com>
Co-authored-by: borong <borongzh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <rockmagma02@gmail.com>
Co-authored-by: zmsn-2077 <73586554+zmsn-2077@users.noreply.github.com>
Co-authored-by: friedmainfunction <73703265+friedmainfunction@users.noreply.github.com>
Co-authored-by: Gaiejj <524339208@qq.com>
Co-authored-by: zmsn-2077 <jiamg.ji@gmail.com>
Co-authored-by: Ruiyang Sun <rockmagma02@gmail.com>
Co-authored-by: Jiayi Zhou <108712610+Gaiejj@users.noreply.github.com>
Co-authored-by: 1Asan <99461435+1Asan@users.noreply.github.com>
fix(algo): fix no return in algo_wrapper::learn (PKU-Alignment#122)
fix(logger, wrapper): support csv file and velocity tasks (PKU-Alignment#131)
fix typo. (PKU-Alignment#134)
fix(ppo): fix entropy loss (PKU-Alignment#135)
fix bugs (PKU-Alignment#136)
fix: support new config for exp_grid (PKU-Alignment#142)
fix(rollout, exp_grid): fix logdir path conflict (PKU-Alignment#145)
fix(on-policy): fix the second order algorithms performance (PKU-Alignment#147)
…lignment#162)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: borong <borongzh@gmail.com>
@codecov
Copy link

codecov bot commented Mar 19, 2023

Codecov Report

Patch coverage: 90.00% and no project coverage change.

Comparison is base (eb45923) 86.48% compared to head (c989a20) 86.49%.

❗ Current head c989a20 differs from pull request most recent head 52fe7c8. Consider uploading reports for the commit 52fe7c8 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #164   +/-   ##
=======================================
  Coverage   86.48%   86.49%           
=======================================
  Files          80       80           
  Lines        3730     3740   +10     
=======================================
+ Hits         3226     3235    +9     
- Misses        504      505    +1     
Impacted Files Coverage Δ
omnisafe/adapter/onpolicy_adapter.py 98.38% <ø> (ø)
omnisafe/envs/wrapper.py 97.54% <83.33%> (-0.74%) ⬇️
omnisafe/envs/safety_gymnasium_env.py 97.50% <100.00%> (+0.27%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@Gaiejj Gaiejj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@zmsn-2077 zmsn-2077 self-requested a review March 20, 2023 08:21
Copy link
Member

@zmsn-2077 zmsn-2077 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@friedmainfunction friedmainfunction merged commit 4d96546 into PKU-Alignment:dev Mar 20, 2023
@friedmainfunction friedmainfunction deleted the fix_adapter branch March 20, 2023 08:26
zmsn-2077 pushed a commit that referenced this pull request Mar 26, 2023
Co-authored-by: borong <borongzh@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

None yet

7 participants