How mahlatsim/vehiclepricepredictor works
This is a Streamlit used-car price predictor and market-insights app. Users navigate from a landing page to either an interactive dashboard or a prediction form; prediction builds vehicle features, scales them, runs an XGBoost model, and displays an estimate with a confidence interval. The dashboard reads the car dataset and presents market, brand, and feature analyses. Prediction and dashboard excerpts show their local data and model operations; connections between pages and documented capabilities rely on the README, and unsampled implementation details are not inferred.
Main entry points: Prediction.py Prediction page · Dashboard.py Dashboard page · cardekho_dataset.csv Car listings · scaler.pkl Feature scaler
Components 17
Streamlit App
- Landing page
Home.py
Price Prediction
- Prediction page
pages/Prediction.py - Vehicle inputs
pages/Prediction.py - Feature preparation
pages/Prediction.py - Feature scaler
scaler.pkl - XGBoost model
Best_model.xgb - Price inference
pages/Prediction.py - Confidence interval
pages/Prediction.py - Price result
pages/Prediction.py - Training features
X_train_scaled.npy - Training labels
Y_train.npy
Market Insights
- Dashboard page
pages/Dashboard.py - Car listings
cardekho_dataset.csv - Market overview
pages/Dashboard.py - Brand comparisons
pages/Dashboard.py - Feature analysis
pages/Dashboard.py
Other components
- App user
Connections 21
- App user → Landing page: opens
readme.md - App user → Dashboard page: navigates to
readme.md - App user → Prediction page: navigates to
readme.md - Prediction page → Vehicle inputs: collects
pages/Prediction.py - Vehicle inputs → Feature preparation: encodes
pages/Prediction.py - Prediction page → Feature scaler: loads
pages/Prediction.py - Prediction page → XGBoost model: loads
pages/Prediction.py - Prediction page → Training features: loads
pages/Prediction.py - Prediction page → Training labels: loads
pages/Prediction.py - Feature preparation → Feature scaler: transforms with
pages/Prediction.py - Prediction page → Price inference: invokes
pages/Prediction.py - Price inference → XGBoost model: predicts with
pages/Prediction.py - Price inference → Confidence interval: calculates bounds
pages/Prediction.py - Confidence interval → Price result: displays
pages/Prediction.py - Dashboard page → Car listings: reads
pages/Dashboard.py - Dashboard page → Market overview: presents
readme.md - Dashboard page → Brand comparisons: presents
readme.md - Dashboard page → Feature analysis: presents
readme.md - Car listings → Market overview: informs
pages/Dashboard.py - Car listings → Brand comparisons: informs
pages/Dashboard.py - Car listings → Feature analysis: informs
pages/Dashboard.py