Used BMW & Audi prices, predicted within 6.5%.
A LightGBM model trained on 29,988 real Turkish listings, served behind a FastAPI backend on Railway. Every number below comes from leak-free 5-fold out-of-fold evaluation — not a lucky holdout — and the same dataset that drives the reports.
The model's mean error is 43% lower than the comparable median (₺81K per car). Beyond model and year, the gap is closed mostly by mileage, age, and damage.
How it's served
Two tracks. Offline, listings become a DuckDB file and a serving bundle in object storage. Online, FastAPI loads that bundle into memory at boot — the raw 30K rows never leave the backend.
Bundle: {model, scale_model, comparables, tfidf, cat_maps, feat_cols} — 9 categoricals + 14 numerics + free-text model & series → TF-IDF → TruncatedSVD (170 dims), paired with the adaptive scale model and comparable counts. Training and serving share the exact same preprocessing.
Scores
Three model variants share one leak-free 5-fold split, benchmarked against a comparable-median baseline on the same folds.
| Variant | MAPE | R² | MAE ₺ | MedAE ₺ | RMSE ₺ |
|---|---|---|---|---|---|
| LightGBM · TF-IDF+SVD · served | 6.49% | 0.9745 | 109,776 | 75,320 | 176,225 |
| CatBoost · TF-IDF+SVD ★ | 6.44% | 0.9745 | 110,085 | 74,927 | 176,130 |
| CatBoost · native | 6.58% | 0.9739 | 112,925 | 77,660 | 178,312 |
| Comparable median · laddered | 11.20% | 0.9235 | 191,224 | 130,000 | 305,050 |
★ wins on MAPE alone; both SVD variants tie in practice, and deterministic CPU training selects LightGBM (258 trees). Vehicle-adaptive scale intervals reach 90.1% OOF coverage (90.3% with zero comparables; median width 24.7%) and hold at 86.8% on 8,889 unseen forward listings.
What the data actually says
Core findings that change how you read an asking price.
Data & method
Real TR-registered used-car detail pages across 4 snapshots (2026-01-18 – 2026-06-27), deduplicated to one row per listing.
The 15,171 excluded rows are repeat scrapes of the same ads. Deduplication runs before the 5-fold split so no listing straddles train and validation folds.