lilianweng / stock-rnn

Predict stock market prices using RNN model with multilayer LSTM cells + optional multi-stock embeddings.
https://lilianweng.github.io/lil-log
1.72k stars 656 forks source link

Error with code #17

Open pratishrutinayak opened 6 years ago

pratishrutinayak commented 6 years ago

File "C:\Users\PRATISHRUTI\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'inputs:0', which has shape '(?, 30, 1)' Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program

c:\users\pratishruti\anaconda3\lib\site-packages\tensorflow\python\client\session.py(1100)_run() -> % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))

rishiswethan commented 6 years ago

I'm having the same error

kprojiang commented 5 years ago

File "C:\Users\PRATISHRUTI\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'inputs:0', which has shape '(?, 30, 1)' Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program

c:\users\pratishruti\anaconda3\lib\site-packages\tensorflow\python\client\session.py(1100)_run() -> % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))

I guess the code in written in Python 2.7, and tensorflow version also needs updating. I try to run the code in tensorflow 1.10, Python 3.6. Not encountering the problem above, with data provided by https://github.com/jimenbian/stock-rnn