Upload folder using huggingface_hub
Browse files- HF_README_SVR.md +28 -0
- standard_scaler.joblib +1 -1
- svr_model.joblib +2 -2
HF_README_SVR.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
tags:
|
| 4 |
+
- time-series
|
| 5 |
+
- regression
|
| 6 |
+
- svr
|
| 7 |
+
- stock-prediction
|
| 8 |
+
- technical-analysis
|
| 9 |
+
- scikit-learn
|
| 10 |
+
---
|
| 11 |
+
# SVR Model for AAPL Price Prediction (Technical Indicators)
|
| 12 |
+
|
| 13 |
+
This repository hosts a trained **Support Vector Regression (SVR)** model and its necessary preprocessing components (StandardScaler) for predicting the closing price of **AAPL**.
|
| 14 |
+
|
| 15 |
+
## Model Details
|
| 16 |
+
- **Algorithm:** Support Vector Regression (SVR) with RBF/Linear Kernel (Tuned by Grid Search)
|
| 17 |
+
- **Features:** 37 features derived from technical analysis (SMA, Volatility, Returns) with lookbacks up to 252 days.
|
| 18 |
+
- **Target:** Next day's closing price.
|
| 19 |
+
- **Training Period:** 2023-01-01 to 2024-12-31
|
| 20 |
+
|
| 21 |
+
## Inference
|
| 22 |
+
To use this model, you must correctly calculate and input all 37 technical features (including moving averages and volatility ratios) for the day prior to the prediction.
|
| 23 |
+
|
| 24 |
+
1. Load the `svr_model.joblib` and `standard_scaler.joblib`.
|
| 25 |
+
2. Calculate the 37 features for day $T$.
|
| 26 |
+
3. Scale the 37 features using the loaded `StandardScaler`.
|
| 27 |
+
4. Run the prediction.
|
| 28 |
+
|
standard_scaler.joblib
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1487
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48796a03b7b1315edd029e9a37473c6adc15406c28742df1d5cf61fbbfa6fd46
|
| 3 |
size 1487
|
svr_model.joblib
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abbb583de4f041c60c74690771161c64ffa4375bf48bc3464beb8d0aa0e56d48
|
| 3 |
+
size 159038
|