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 for action with noise type and value needs to be within (low,high) #128

Conversation

grahamannett
Copy link
Contributor

Description

Fixes #127

either action = np.clip(action, env.action_space.low, env.action_space.high, dtype=np.float32) or action = np.clip(action, -1, 1, dtype=np.float32) should fix it

Copy link
Collaborator

@balisujohn balisujohn left a comment

Choose a reason for hiding this comment

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

LGTM :^)

@balisujohn balisujohn merged commit 0db0da5 into Farama-Foundation:main Aug 3, 2023
10 checks passed
@grahamannett grahamannett deleted the graham/fix-tutorial-actions-clip branch August 3, 2023 20:26
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.

action can fall outside of action_space
2 participants