-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp_in_running.txt
More file actions
163 lines (122 loc) · 3.9 KB
/
help_in_running.txt
File metadata and controls
163 lines (122 loc) · 3.9 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# 🚀 Time Series Forecasting Project - Manual Setup Guide
## 📋 Prerequisites
- Python 3.8 or higher installed
- Terminal/Command Prompt access
- Internet connection (for dependencies and stock data)
---
## 🔧 Step-by-Step Setup Instructions
### Step 1: Navigate to Project Directory
```bash
cd /Users/rehaankhatri/ATSA_project_sem_7/Time_Series_Analysis_Project
```
### Step 2: Activate Virtual Environment (Optional but Recommended)
```bash
# Create virtual environment if it doesn't exist
python3 -m venv venv
# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
# venv\Scripts\activate
```
### Step 3: Install Dependencies
```bash
pip install flask flask-cors pandas numpy matplotlib seaborn plotly scikit-learn statsmodels yfinance requests python-dotenv
```
### Step 4: Run the Flask Application
```bash
python app_flask.py
```
### Step 5: Access the Application
Open your web browser and go to:
- **Local:** `http://127.0.0.1:5001` or `http://localhost:5001`
- **Network:** `http://192.168.29.98:5001` (accessible from other devices)
---
## 🎯 Quick Start Guide
### 1. Load Data
- Click **"Load Sample Data"** for quick testing
- Or enter a stock ticker (like AAPL) and click **"Load Data"**
### 2. Run Forecasting
- Select model: **ARIMA** or **SARIMA**
- Adjust forecast periods (default: 30)
- Set confidence interval (default: 95%)
- Click **"Run Forecasting"**
### 3. View Results
- Performance metrics (RMSE, MAE, MAPE, AIC)
- Interactive forecast charts
- Residuals analysis
---
## 🔧 Troubleshooting
### If you get dependency errors:
```bash
pip install --upgrade pip
pip install -r requirements.txt
```
### If port 5001 is busy:
```bash
# Kill any process using port 5001
lsof -ti:5001 | xargs kill -9
# Then run the app again
python app_flask.py
```
### If you get PyArrow/Prophet errors:
Don't worry! The project now works without Prophet. Just use ARIMA and SARIMA models.
### If Flask doesn't start:
```bash
# Check if all files are present
ls -la app_flask.py models/ utils/ static/ templates/
# Make sure you're in the right directory
pwd
```
---
## 📱 Alternative: Run Streamlit Version (If Available)
```bash
# If you want to try Streamlit (may have dependency issues)
pip install streamlit
streamlit run app.py
```
---
## 🛑 To Stop the Application
- Press `Ctrl + C` in the terminal
- Or close the terminal window
---
## 📋 Complete Command Sequence (Copy & Paste)
```bash
# Navigate to project
cd /Users/rehaankhatri/ATSA_project_sem_7/Time_Series_Analysis_Project
# Activate virtual environment (optional)
source venv/bin/activate
# Install dependencies
pip install flask flask-cors pandas numpy matplotlib seaborn plotly scikit-learn statsmodels yfinance requests python-dotenv
# Run the application
python app_flask.py
# Open browser to http://localhost:5001
```
---
## ✅ Success Indicators
- Terminal shows: `* Running on http://127.0.0.1:5001`
- Browser loads the dashboard successfully
- You can load sample data and run forecasts
- Charts display properly
---
## 🎉 Features Available
- **Data Sources:** Stock data (Yahoo Finance), CSV upload, Sample data
- **Models:** ARIMA, SARIMA (Prophet disabled due to dependency issues)
- **Visualizations:** Interactive charts with Plotly
- **Performance Metrics:** RMSE, MAE, MAPE, AIC, BIC
- **Fast Mode:** Enabled by default for better performance
- **Error Handling:** Comprehensive validation and fallbacks
---
## 📞 Support
If you encounter any issues:
1. Check the terminal output for error messages
2. Ensure all dependencies are installed
3. Verify you're in the correct directory
4. Try the troubleshooting steps above
---
## 🔗 Repository Information
- **GitHub:** https://github.com/aditya-cadbury/Time_Series_Analysis_Project.git
- **Last Updated:** September 2025
- **Project Type:** ATSA Major Project for Forecasting
---
**Your Time Series Forecasting Dashboard should now be running perfectly!** 🎉