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

run.py doesn't accumulate reward #20

Open
KarolisRam opened this issue Feb 26, 2019 · 1 comment
Open

run.py doesn't accumulate reward #20

KarolisRam opened this issue Feb 26, 2019 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@KarolisRam
Copy link

I created a manual agent (action = 18, keep running forward) that sometimes passes a floor or two using run.py as a base, however the episode reward always shows 0.0.
Changing line 11

obs, reward, done, info = env.step(action)

to

obs, rew, done, info = env.step(action)
reward += rew

fixes the issue and shows the rewards correctly.

@awjuliani awjuliani added the help wanted Extra attention is needed label Feb 27, 2019
@awjuliani
Copy link
Contributor

Hi @KarolisRam

Thanks for making this issue. I am assigning @harperj who wrote this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants