Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
language: en
|
| 3 |
tags:
|
| 4 |
- time-series
|
|
@@ -16,12 +17,41 @@ metrics:
|
|
| 16 |
|
| 17 |
# π LSTM Stock Price Forecasting
|
| 18 |
|
| 19 |
-
This repository contains an **LSTM model** trained on stock closing prices.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
- Evaluation: RMSE & MAPE using rolling window
|
| 24 |
-
- Deployment: Hugging Face Hub (`DataSynthis_ML_JobTask`)
|
| 25 |
|
| 26 |
## Usage
|
| 27 |
```python
|
|
|
|
| 1 |
---
|
| 2 |
+
---
|
| 3 |
language: en
|
| 4 |
tags:
|
| 5 |
- time-series
|
|
|
|
| 17 |
|
| 18 |
# π LSTM Stock Price Forecasting
|
| 19 |
|
| 20 |
+
This repository contains an **LSTM model** trained on stock closing prices and compared with a traditional ARIMA baseline.
|
| 21 |
+
The goal is to forecast future stock values and evaluate which approach generalizes better.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## π Dataset
|
| 26 |
+
- **Source:** Yahoo Finance
|
| 27 |
+
- **Ticker:** Apple Inc. (AAPL)
|
| 28 |
+
- **Period:** 2015β2023
|
| 29 |
+
- **Feature Used:** Daily closing price
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## π§ Models Implemented
|
| 34 |
+
- **ARIMA (Auto ARIMA)** β traditional statistical time-series forecasting
|
| 35 |
+
- **LSTM** β deep learning recurrent neural network for sequential data
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## π Evaluation Results
|
| 40 |
+
|
| 41 |
+
| Model | RMSE | MAPE |
|
| 42 |
+
|-------|-----------|----------|
|
| 43 |
+
| ARIMA | 15.796 | 0.0857 |
|
| 44 |
+
| LSTM | 7.533 | 0.0397 |
|
| 45 |
+
|
| 46 |
+
β
**Conclusion:** LSTM significantly outperforms ARIMA with lower RMSE and MAPE, showing its ability to capture nonlinear patterns in stock prices.
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## π Example Forecast Plot
|
| 51 |
+
*(You can upload and embed a forecast.png here if available)*
|
| 52 |
|
| 53 |
+
```markdown
|
| 54 |
+

|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Usage
|
| 57 |
```python
|