chore: 添加Stock-Prediction-Models项目文件

添加了Stock-Prediction-Models项目的多个文件,包括数据集、模型代码、README文档和CSS样式文件。这些文件用于股票预测模型的训练和展示,涵盖了LSTM、GRU等深度学习模型的应用。
This commit is contained in:
2025-04-27 16:28:06 +08:00
parent f57150dae8
commit 2757a4d0d2
200 changed files with 79402 additions and 0 deletions
@@ -0,0 +1,35 @@
# Stock forecasting JS
LSTM Model for stock forecasting and buying simulation inside Tensorflow JS, so everyone can try!
## Stack
Graphic library: [Echarts](https://ecomfe.github.io/echarts-examples/public/index.html), [D3](https://d3js.org/)
CSV parsing: [Papaparse JS](https://www.papaparse.com/)
Linear algebra: [numeric JS](https://github.com/sloisel/numeric), [numJS](https://github.com/cliffordwolf/NumJS), [Tensorflow JS](https://js.tensorflow.org/)
## How-to
1. Clone this folder and just open [index.html](index.html),
Or, go to [huseinhouse.com/stock-forecasting-js](https://huseinhouse.com/stock-forecasting-js/)!
![alt text](screenshot/1.png)
2. Check hyper parameters you want to tune,
![alt text](screenshot/2.png)
3. You can upload any stock CSV, downloaded from Yahoo finance or any website. Any error, please open an issue.
4. Train the model and wait it's fitting!
5. After done training, it will predict where to buy and sell,
![alt text](screenshot/3.png)
Comparing histogram and loss graph,
![alt text](screenshot/4.png)