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

fix np.array type to float64 #27

Open astankus opened 5 years ago

astankus commented 5 years ago

some financial instruments have integer price. if you try to normalize this seq, you got -1, 0, +1 to fix it you have to add dtype=np.float64, when you are creating np.array (line 34)