How laybaatariq/3-days-aqi-forecast works
This repository is an hourly AQI forecasting dashboard backed by a Hopsworks data pipeline. The operational path is pollutant/weather API data → cleaning → feature engineering → dashboard forecasts and visualizations. README-described model evaluation and automated updates are included as documented capabilities, but their implementation is not established by the sampled source. The dashboard excerpt shows its feature-store read, model loading, prediction generation, and charts; the three pipeline scripts show their own store interactions. The README supplies the broader training and automation relationships.
Main entry points: app.py Streamlit dashboard · daily_aqi.yml Scheduled updates · fetch_API_data.py AQI and weather fetch · clean_and_upload.py Clean and upload
Components 16
Data ingestion
- AQI and weather fetch
scripts/fetch_API_data.py - Raw feature group
Feature preparation
- Clean and upload
scripts/clean_and_upload.py - Cleaned feature group
- Feature engineering
scripts/feature_engineer_aqi.py - Engineered feature group
Forecast experience
- LightGBM model
models/best_model_LightGBM.pkl - Streamlit dashboard
app.py - 72-hour predictions
app.py - Forecast charts
app.py
Model operations
- Model training
- Model evaluation
- Scheduled updates
.github/workflows/daily_aqi.yml - Dashboard hosting
Other components
- Dashboard user
- Open-Meteo APIs
Connections 17
- Open-Meteo APIs → AQI and weather fetch: provides readings
scripts/fetch_API_data.py - AQI and weather fetch → Raw feature group: inserts records
scripts/fetch_API_data.py - Raw feature group → Clean and upload: reads data
scripts/clean_and_upload.py - Clean and upload → Cleaned feature group: uploads cleaned data
scripts/clean_and_upload.py - Cleaned feature group → Feature engineering: reads data
scripts/feature_engineer_aqi.py - Feature engineering → Engineered feature group: inserts features
scripts/feature_engineer_aqi.py - Engineered feature group → Streamlit dashboard: loads features
app.py - Streamlit dashboard → LightGBM model: loads model
app.py - Streamlit dashboard → 72-hour predictions: generates forecasts
app.py - 72-hour predictions → Forecast charts: renders charts
app.py - Dashboard user → Streamlit dashboard: views forecast
- Engineered feature group → Model training: supplies training data
README.md - Model training → Model evaluation: produces model results
README.md - Model evaluation → LightGBM model: selects model
README.md - Scheduled updates → Model training: triggers retraining
README.md - Scheduled updates → Dashboard hosting: deploys updates
README.md - Dashboard hosting → Streamlit dashboard: hosts dashboard
README.md