Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mayuanyang/smartstock
https://github.com/mayuanyang/smartstock
keras lstm stock-prediction tensorflow
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayuanyang/smartstock
- Owner: mayuanyang
- Created: 2017-12-25T00:28:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T00:51:44.000Z (about 7 years ago)
- Last Synced: 2024-11-19T09:51:56.962Z (3 months ago)
- Topics: keras, lstm, stock-prediction, tensorflow
- Language: Python
- Size: 141 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SmartStock
Use Keras, Tensorflow and LSTM to predict stock price## How to start
Make sure you have Python, Tensorflow and Keras installed
- Tensorflow installation guide https://www.tensorflow.org/install/
- Keras documentation https://keras.io/Once the environment is ready, just simply open a command prompt and type in `python multiinputs.py`
## How it works
I treat it as a supervised training problem, the csv file contains multiple columns e.g. `['Open','High','Low','Close','Adj close', 'Volume']`,
the process will preprocess the data by appending the next day's columns to the right as the `answer` and use `LSTM` to work it out.The data will be split to 90%/10% for training and evaluation, here is the example result
![image](https://user-images.githubusercontent.com/3387099/34645411-ab279e96-f398-11e7-861f-82656bf73eb2.png)