Course Name: Deep Reinforcement Learning in Trading, Section No: 18, Unit No: 13, Unit type: Notebook
run(bars5m, rl_config)
just gets frozen and does nothing. Why? Would not it be better to at least get some indication wheather it's doing anything at all? Like use: verbose or similar, to explain if anything is happening behind. I am getting more and more frustrated with this course.
Hello Antoni,
You can speed up the run function by decreasing the batch size from 30 to let's say 1. This would improve the speed greatly but would decrease accuracy.
Logs were only added for trades. We didn't add logs in intermediate steps to avoid flooding the notebook with logs. However, if you wish to have more logs, you can add print statements in the run function available in the quantra_reinforcement_learning.py file in the data_modules folder of the zip file. For example, you can add print statements after adding a state to the memory, after creating a new Q-Table, after updating the NN model with a new Q-Table etc.
I hope this helps!