kh-kim / stock_market_reinforcement_learning

This project provides a stock market environment using OpenGym with Deep Q-learning and Policy Gradient.
790 stars 321 forks source link

ImportError: No module named deeplearning_assistant.model_builder #6

Open jinpengchina opened 7 years ago

jinpengchina commented 7 years ago

python market_pg.py ./kospi_10.csv pg.h5 Traceback (most recent call last): File "market_pg.py", line 5, in from market_model_builder import MarketPolicyGradientModelBuilder File "/Users/tonylibai/code/python_ai/gym/stock_market_reinforcement_learning/market_model_builder.py", line 1, in from deeplearning_assistant.model_builder import AbstractModelBuilder ImportError: No module named deeplearning_assistant.model_builder

why ???

ImportError: No module named deeplearning_assistant.model_builder

guoguo657 commented 7 years ago

I have met with the same question! Ask for help! 

hmingkwan commented 7 years ago

I encountered the same problem, anyone can help?

TheGU commented 7 years ago

Clone this repo https://github.com/clxdsjyx/deeplearning_assistant to your repo should help.

lemon57 commented 6 years ago

downloaded deeplearning_assistant directory to project directory, still doesn't work try to run python market_pg.py or python market_pg.py ./kospi_10.csv pg.h5 The issue is the same: ImportError: No module named deeplearning_assistant.model_builder

What am I doing wrong?

jorddenn commented 6 years ago

The file to be imported is in the deeplearning_assistant repo that was linked above by @TheGU. The code is trying to use the model_builder.py file included in that repo. However the repo includes the file needed but the import statement is wrong, just delete the "deeplearning_assistant" part leaving only "model_builder", no need to download the extra repo