LSTM stock forecast implemented in an accessible web format.
Explore the docs »
View Website
.
View API
·
Report Bug
·
Request Feature
Table of Contents
The Foresight is a webapp that does stock price prediction with TensorFlow's LSTM dense model.
Foresight splits its responsibilities into 2 applications: The webapp, and the Foresight API.
The webapp is responsible for displaying content, while the API does the HUGE amount of webscraping, and actually has the LSTM. I did this, because I needed to access data in javascript that is only available with python libraries.
You may be wondering, why webscraping? Well thats because google finance has a LOT of helpful information!
Unfortunately, So I webscraped the information! In hindsight, the webscraping does slow things down, A LOT. I learned from this mistake in my latest web implementation of a model at Beluga Sturgeon Financial (this time its a reinforcement learning model).
But it is what it is! We learn. Foresight took a lot of work. Routing, Styling, Scripting, Webscraping, Machine learning, integration and deployment were all things that needed to happen. it was daunting at first, but my enthusiasm increased as things started coming together, especially after integrating the graph (Huge thanks to anychart)
First clone this repository. Then, you want pip freeze the requirements, or just use replit (i used replit for the application, and heroku for the API)
To get requirements, just
-
pip freeze > requirements.txt
- Clone the repo
git clone https://github.com/Sentientplatypus/Foresight.git
And run wsgi.py
. Its plug and play.
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Create the model
- Create the website
- Create the API
- Deploy
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Geneustace Wicaksono - My Website - [email protected]
Project Link: https://github.com/Sentientplatypus/Foresight