PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug in Chapter08/lib/data.py

educob opened this issue · comments

Hi.

in line 33 it asks if prev_vals is not None but then it's not used.

if fix_open_price and prev_vals is not None:
                ppo, pph, ppl, ppc, ppv = vals

I think line 34 should be:
ppo, pph, ppl, ppc, ppv = prev_vals

Thanks.

I just came here to suggest exactly the same fix.

Thanks! Fixed in master