Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,57 +1,33 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
1.
|
| 32 |
-
2.
|
| 33 |
-
|
| 34 |
-
cp .env.example .env
|
| 35 |
-
# Edit .env with your API key
|
| 36 |
-
```
|
| 37 |
-
3. Build and start services:
|
| 38 |
-
```bash
|
| 39 |
-
docker-compose up --build -d
|
| 40 |
-
```
|
| 41 |
-
|
| 42 |
-
### Usage
|
| 43 |
-
- **API Documentation**: [http://localhost:8000/docs](http://localhost:8000/docs)
|
| 44 |
-
- **Prefect UI**: [http://localhost:4200](http://localhost:4200)
|
| 45 |
-
- **Health Check**: [http://localhost:8000/health](http://localhost:8000/health)
|
| 46 |
-
|
| 47 |
-
### Running Tests
|
| 48 |
-
```bash
|
| 49 |
-
pip install -e .[dev]
|
| 50 |
-
python -m pytest tests/
|
| 51 |
-
```
|
| 52 |
-
|
| 53 |
-
### Training Models
|
| 54 |
-
To train models manually:
|
| 55 |
-
```bash
|
| 56 |
-
python src/orchestration/flows.py
|
| 57 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: AI Stock Prediction System
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
app_port: 7860
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# π AI Stock Prediction & Analysis System
|
| 12 |
+
|
| 13 |
+
An End-to-End Machine Learning System for predicting stock prices and analyzing market regimes.
|
| 14 |
+
|
| 15 |
+
## π Features
|
| 16 |
+
|
| 17 |
+
* **Ensemble Models:** Combines Linear Regression, Random Forest, and SVM for robust predictions.
|
| 18 |
+
* **Live Data:** Fetches real-time price data from Alpha Vantage.
|
| 19 |
+
* **Market Analysis:** Unsupervised Learning (Clustering & PCA) to detect market volatility regimes.
|
| 20 |
+
* **Automated Pipeline:** Built with Prefect for orchestration and GitHub Actions for CI/CD.
|
| 21 |
+
|
| 22 |
+
## π οΈ Tech Stack
|
| 23 |
+
|
| 24 |
+
* **Frontend:** Streamlit
|
| 25 |
+
* **Backend:** FastAPI / Prefect
|
| 26 |
+
* **ML:** Scikit-Learn, Pandas, Numpy
|
| 27 |
+
* **DevOps:** Docker, GitHub Actions
|
| 28 |
+
|
| 29 |
+
## π How to Use
|
| 30 |
+
|
| 31 |
+
1. Select a stock from the sidebar (e.g., AAPL, NVDA).
|
| 32 |
+
2. View the Real-Time Metrics and AI Predictions.
|
| 33 |
+
3. Switch tabs to explore the "Market Regime" visualization.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|