Closed fu2re closed 5 years ago
packages you may interest in backtrader==1.9.69.122 cassandra-driver==3.16.0 matplotlib==2.0.2 numpy==1.15.4 pandas==0.23.4 scikit-learn==0.20.0 scipy==1.1.0 tensorboard==1.12.0 tensorflow==1.12.0
@fu2re,
Short:
Have you run your env. manually before attempting distributed training setup? See this comment for details: https://github.com/Kismuz/btgym/issues/80#issuecomment-440780115
Even before running environment, have you run your dataset-trial-episode cycle manually in a loop several times? - in a manner like in https://github.com/Kismuz/btgym/blob/master/examples/data_domain_api_intro.ipynb
Expanded:
when developing such a principal upgrade in functionality, it is a good practice to follow modularised testing approach. For this particular case I would recommend:
unittest
package)@fu2re, do I understand correctly that your proposed functionality is:
Pls. correct if I miss something.
my CassandraDataSet is completely similar to your BTgymDataset / BTgymDataset2. The only defference is what I get data from cassandra insted of csv file.
I cant pass even your own tests in data_test:
IndexError: index -1 is out of bounds for axis 0 with size 0
I had the similar error with my CassandraDataSet tests.
I have made my custom dataset using cassandra and overrinde read_csv method.
cassndra model:
then I just open aac example and replace your dataset with my own. And is shows me the plot immediately. then it stuck with timeout error. No steps doing. I have figure out that the problem is inside of btgym/server.py:711 btgym/rendering/renderer.py:232 ... backtrader/cerebro.py:996
Your example code is working fine and does not stuck here. Plot is not displayed and learning works. What I have missed? Please help, I have spent a whole month, but cant resolve it by myself.