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

Give parabola finite action space #55

Merged
merged 2 commits into from
Aug 5, 2022

Conversation

dfilan
Copy link
Collaborator

@dfilan dfilan commented Jul 20, 2022

Currently, the action space in parabola is infinitely large, which breaks some RL algorithms (e.g. PPO). This change makes the space finite: the interval $[-2 \times bounds, 2 \times bounds]$. This is because actions are added to the y-coordinate, which is then clipped to be in the interval $[-bounds, bounds]$.

NB: I haven't actually gotten seals properly working on my laptop, so am hoping that tests get run automatically by some CI process.

@AdamGleave
Copy link
Member

Linting is complaining about missing whitespace, otherwise I think good to go.

@codecov
Copy link

codecov bot commented Aug 5, 2022

Codecov Report

Merging #55 (36c30ea) into master (a965478) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #55   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          704       704           
=========================================
  Hits           704       704           
Impacted Files Coverage Δ
src/seals/diagnostics/parabola.py 100.00% <ø> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Copy link
Member

@AdamGleave AdamGleave left a comment

Choose a reason for hiding this comment

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

LGTM

@AdamGleave AdamGleave merged commit f3a2404 into HumanCompatibleAI:master Aug 5, 2022
@dfilan dfilan deleted the patch-1 branch August 5, 2022 05:58
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.

2 participants