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

name 'xrange' is not defined error #23

Closed elvisomondi closed 5 years ago

elvisomondi commented 5 years ago

When running python main.py --stock_symbol=SP500 --train --input_size=1 --lstm_size=128 --max_epoch=50 , i keep getting the error NameError: name 'xrange' is not defined. How can i fix this?

elvisomondi commented 5 years ago

Found the fix! Just add on the imports from past.builtins import xrange