Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Running data_fetcher.py #22

Open
VK9999 opened this issue Jul 13, 2018 · 2 comments
Open

Error Running data_fetcher.py #22

VK9999 opened this issue Jul 13, 2018 · 2 comments

Comments

@VK9999
Copy link

VK9999 commented Jul 13, 2018

When i run the code i am getting the following error. I did got lot of module errors and i have changed the urllib2 to urlib2.requests and beautifulSoap to bs4. Can you please check this issue and let me know.

I did add the future library to resolve the below issue but it failed.


UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
"Converting sparse IndexedSlices to a dense Tensor of unknown shape. "

Variables: name (type shape) [size]

dynamic_rnn/lstm_cell/kernel:0 (float32_ref 129x512) [66048, bytes: 264192]
dynamic_rnn/lstm_cell/bias:0 (float32_ref 512) [512, bytes: 2048]
w:0 (float32_ref 128x1) [128, bytes: 512]
b:0 (float32_ref 1) [1, bytes: 4]
Total size of variables: 66689
Total bytes of variables: 266756
len(merged_test_X) = 0
len(merged_test_y) = 0
len(merged_test_labels) = 0
{'SP500': array([], dtype=float64)}
Start training for stocks: ['SP500']
Traceback (most recent call last):
File "main.py", line 111, in
tf.app.run()
File "C:\Users\abc\PycharmProjects\Stocks-RNN\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "main.py", line 104, in main
rnn_model.train(stock_data_list, FLAGS)
File "C:\Users\abc\PycharmProjects\Stocks-RNN\model_rnn.py", line 212, in train
for epoch in xrange(config.max_epoch):
NameError: name 'xrange' is not defined

@VK9999
Copy link
Author

VK9999 commented Jul 13, 2018

I resolved the above issue by adding "from past.builtins import xrange". Now i am getting the following error .

raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

@VK9999
Copy link
Author

VK9999 commented Jul 13, 2018

Resolved the above issue by changing the path of the S&P 500 file location.
https://raw.githubusercontent.com/datasets/s-and-p-companies-financials/master/data/constituents-financials.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant