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

Runtime warning: invalide value encountered in remainder #1244

Closed
mgkumar138 opened this issue Dec 3, 2018 · 2 comments
Closed

Runtime warning: invalide value encountered in remainder #1244

mgkumar138 opened this issue Dec 3, 2018 · 2 comments

Comments

@mgkumar138
Copy link

i am testing my AC code using Pendulum-v0 environment and got this error:

gym\envs\classic_control\pendulum.py:88: RuntimeWarning: invalid value encountered in remainder
return (((x+np.pi) % (2*np.pi)) - np.pi)

Afterwhich my rewards during training were [nan]: Episode 23 of 100, score [nan]. Would anyone know what might be the cause for this?

@christopherhesse
Copy link
Contributor

Are you clipping your actions to within the allowed range for the action space of the environment? https://github.com/openai/gym/blob/master/gym/envs/classic_control/pendulum.py#L20

@christopherhesse
Copy link
Contributor

Closing due to lack of activity. Possibly related issue: openai/baselines#121

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