Files
zhoujie2104231 2757a4d0d2 chore: 添加Stock-Prediction-Models项目文件
添加了Stock-Prediction-Models项目的多个文件,包括数据集、模型代码、README文档和CSS样式文件。这些文件用于股票预测模型的训练和展示,涵盖了LSTM、GRU等深度学习模型的应用。
2025-04-27 16:28:06 +08:00

1.0 KiB

Stock forecasting JS

LSTM Model for stock forecasting and buying simulation inside Tensorflow JS, so everyone can try!

Stack

Graphic library: Echarts, D3

CSV parsing: Papaparse JS

Linear algebra: numeric JS, numJS, Tensorflow JS

How-to

  1. Clone this folder and just open index.html,

Or, go to huseinhouse.com/stock-forecasting-js!

alt text

  1. Check hyper parameters you want to tune,

alt text

  1. You can upload any stock CSV, downloaded from Yahoo finance or any website. Any error, please open an issue.

  2. Train the model and wait it's fitting!

  3. After done training, it will predict where to buy and sell,

alt text

Comparing histogram and loss graph,

alt text