How yaswanth-989/aqua_sense works
AquaSense is a web and REST application for municipal water-demand forecasting and drinking-water potability assessment. Utility operators enter through the FastAPI application, which serves analysis views and exposes validation, data-inspection, and prediction APIs; prediction requests are handled by the inference service. Its broader documented capabilities include data preparation, exploratory analysis, linear and tree models, clustering/PCA, evaluation, deployment, and monitoring. Source excerpts and the index show key route and module relationships; unsampled deployment and monitoring implementations are represented only where documented.
Main entry points: app.py Web and API · loader.py Data Inspection · processed Prepared Datasets · demand_preprocessor.py Demand Preparation
Components 19
Application Entry
- Web and API
app.py
Data Preparation
- Source Datasets
data/raw - Data Inspection
src/data/loader.py - Schema Validation
src/data/validator.py - Demand Preparation
src/preprocessing/demand_preprocessor.py - Potability Preparation
src/preprocessing/potability_preprocessor.py - Prepared Datasets
data/processed
Analytics and Models
- Demand Analysis
src/eda/demand_eda.py - Potability Analysis
src/eda/potability_eda.py - Demand Models
src/models/linear_demand.py - Potability Models
src/models/linear_potability.py - Tree Ensembles
src/models/tree_models.py - Clustering and PCA
src/models/clustering_pca.py - Model Evaluation
src/models/evaluation_tuning.py
Prediction and Operations
- Inference Service
src/models/prediction_service.py - Model Artifacts
models - Deployment Information
templates/deployment.html - Monitoring Information
templates/monitoring.html
Other components
- Utility Operator
Connections 26
- Utility Operator → Web and API: uses
README.md - Web and API → Data Inspection: requests inspection
app.py - Web and API → Schema Validation: requests validation
app.py - Web and API → Demand Analysis: routes analysis
app.py - Web and API → Potability Analysis: routes analysis
app.py - Web and API → Demand Preparation: routes preparation
app.py - Web and API → Potability Preparation: routes preparation
app.py - Web and API → Demand Models: runs models
app.py - Web and API → Potability Models: runs models
app.py - Web and API → Tree Ensembles: routes models
app.py - Web and API → Clustering and PCA: runs clustering
app.py - Web and API → Model Evaluation: routes evaluation
app.py - Web and API → Inference Service: routes inference
app.py - Web and API → Deployment Information: renders view
app.py - Web and API → Monitoring Information: renders view
app.py - Schema Validation → Data Inspection: loads datasets
src/data/validator.py - Demand Analysis → Data Inspection: loads demand data
src/eda/demand_eda.py - Potability Analysis → Data Inspection: loads water data
src/eda/potability_eda.py - Demand Preparation → Data Inspection: loads demand data
src/preprocessing/demand_preprocessor.py - Potability Preparation → Data Inspection: loads water data
src/preprocessing/potability_preprocessor.py - Demand Preparation → Prepared Datasets: writes splits
src/preprocessing/demand_preprocessor.py - Potability Preparation → Prepared Datasets: writes splits
src/preprocessing/potability_preprocessor.py - Source Datasets → Data Inspection: loaded by
- Inference Service → Model Artifacts: uses models
- Demand Models → Prepared Datasets: reads splits
src/models/linear_demand.py - Potability Models → Prepared Datasets: reads splits
src/models/linear_potability.py