项目作者: omkarudawant

项目描述 :
Predicting SP500 stock prices with LSTMs
高级语言: Jupyter Notebook
项目地址: git://github.com/omkarudawant/Stock-Price-Prediction.git
创建时间: 2019-12-01T11:28:08Z
项目社区:https://github.com/omkarudawant/Stock-Price-Prediction

开源协议:

下载


Binder

Predicting S&P500 index using LSTM networks

Files/Directories included in the main directory:

  • research/LSTM_Prediction.ipynb - Jupyter notebook containing instructions for training the LSTM network and forecasting the prices.

  • src/prediction.py - Python script for forecasting prices

  • src/train_lstm_model.py - Python script for training/updating the LSTM model

Instructions:

  • Install all the dependencies from requirements.txt

  • For updating or training the LSTM model with newer prices, use a csv file containing Closing prices

  • For training/updating use the command, ‘python train_lstm_model.py’ and type the name of csv file (or path of csv file)

  • For forecasting use the command, ‘python prediction.py’ and enter the number of days you want to forecast (It is recommended to enter a value less than 15 days and always traing the network on a 15 days interval)