notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

qs.plots.snapshot(returns.Balance, title='RL Trader Performance') error #137

Open answerMA opened 4 years ago

answerMA commented 4 years ago

in the test(), when the code is running this step qs.plots.snapshot(returns.Balance, title='RL Trader Performance'), sometimes it poped up zero Division Error, that means zero has been divided inside some steps.

after that, I tried to add try except to avoid this kind of errors. but in the learning output, I can see these two params are stating 0.0 | approxkl | 0.0 | | clipfrac | 0.0

does anyone know what happened on this situation ?