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

NameError: name 'xrange' is not defined #34

Closed mikuchels closed 3 years ago

mikuchels commented 3 years ago

File "/content/drive/My Drive/stock-rnn-master/model_rnn.py", line 212, in train for epoch in xrange(config.max_epoch): NameError: name 'xrange' is not defined

kingwongf commented 3 years ago

Should be range() instead of xrange(). xrange() is only supported in Python 2.7