stock-rnn
stock-rnn copied to clipboard
Error "python data_fetcher.py"
/media/scw4750/个人文件/donghui/stock-rnn-master/data_fetcher.py:38: FutureWarning: sort(columns=....) is deprecated, use sort_values(by=.....)
Loaded 505 stock symbols
df_sp500.sort('Market Cap', ascending=False, inplace=True)
Fetching AAPL ...
https://finance.google.com/finance/historical?output=csv&q=AAPL&startdate=Jan+1%2C+1980&enddate=Jan+10%2C+2019
Traceback (most recent call last):
File "/media/scw4750/个人文件/donghui/stock-rnn-master/data_fetcher.py", line 111, in
Process finished with exit code 1
another fork repo, has the downloaded data already. https://github.com/jimenbian/stock-rnn
another fork repo, has the downloaded data already. https://github.com/jimenbian/stock-rnn
when i run python main.py --stock_symbol=SP500 --train --input_size=1 --lstm_size=128 --max_epoch=50
Traceback (most recent call last):
File "main.py", line 9, in
another fork repo, has the downloaded data already. https://github.com/jimenbian/stock-rnn
when i run python main.py --stock_symbol=SP500 --train --input_size=1 --lstm_size=128 --max_epoch=50
Traceback (most recent call last): File "main.py", line 9, in from model_rnn import LstmRNN File "/root/stock/model_rnn.py", line 135 print "len(merged_test_X) =", len(merged_test_X) ^ SyntaxError: invalid syntax
Probably, you are using a Python 3 environment, while apparently this part of code is Python 2. Some minor adjustment is recommended. Won't take you much time.