What happens when you press Calculate
The website only collects your inputs and shows the answer. The prediction itself runs on a small Python service next to the trained models.
Your browser
The Next.js site. It checks every value against the trained ranges, lists the 115 glass products, and works out cost and payback from the results.
inputs as JSON
Prediction service
FastAPI. It turns wall direction into sine and cosine, builds one row of features per scenario, and asks the models.
GET /products, GET /limits, POST /predict
scores and % change
Existing and replacement window models
11 XGBoost models, 10 inputs each
Secondary window models
16 XGBoost models, 14 inputs each
Glass catalog
115 products with U, SHGC, VT and a cost range per ft²