kkuette / TradzQAI

Trading environnement for RL agents, backtesting and training.
Apache License 2.0
165 stars 47 forks source link

h_len is zero #1

Closed lamhk closed 5 years ago

lamhk commented 5 years ago

Hi kkuette,

I tried to the run the "-m eval" and get the following warning. Will this affect the result? Thanks.

File "...TradzQAI-master/core/environnement/base/base_env.py", line 373, in eval_processing avg_profit /= h_len ZeroDivisionError: division by zero

kkuette commented 5 years ago

Hi lamhk,

This problem append because you didnt finished at least one eval episode. I've already fixed it.