Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

UrbanPulse — Traffic Intelligence Platform

Backend per the Project Bible v2.0 (Pangyo, 14 days, 66 links, 5-min intervals). Frontend (Phase 2) is a separate React + three.js + p5.js app over a FastAPI layer.

Setup

pip install -r requirements.txt

Pipeline (built in Bible dependency order)

Stage Run Produces
B1 — EDA + cleaning python scripts/01_eda.py data/cleaned.parquet, reports/eda/*
B2 — feature engineering python scripts/02_features.py data/features.parquet, data/feature_norms.json
B3 — model training (7 models) python train.py models/*.pkl, reports/model_metrics.csv
B4 — comparison + select best python compare.py models/best_model.pkl, models/best_model_meta.json, reports/model_comparison/*
B11 — FastAPI serving layer python scripts/11_serve.py running API at http://127.0.0.1:8000 (/docs)

API (B11)

Read-only HTTP layer over the precomputed artifacts — the data path for the React + three.js + p5.js frontend.

python scripts/11_serve.py            # 127.0.0.1:8000, open /docs
python scripts/11_serve.py --reload   # auto-reload during dev

Artifact endpoints work from the shipped JSON/CSV even before training. The live /snapshot endpoint additionally needs models/best_model.pkl (run B3+B4).

Narrative notebooks live in notebooks/ and import the repo-root modules (cleaning.py, eda.py, io_utils.py, config.py) — no duplicated logic.

Tests

python -m pytest tests/ -q

See DECISION_MAP.md for locked decisions and the full roadmap (B1–B11).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages