Unity-Technologies / obstacle-tower-challenge

Starter Kit for the Unity Obstacle Tower challenge
Apache License 2.0
119 stars 38 forks source link

run.py doesn't accumulate reward #20

Open KarolisRam opened 5 years ago

KarolisRam commented 5 years ago

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 commented 5 years ago

Hi @KarolisRam

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