How nhannguyenhcm95/phan-tich-gia-dien-thoai-tren-web-chotot works
This is a Streamlit app for estimating used-phone prices from product, listing, and seller details. The documented workflow runs those inputs through preprocessing and several prediction models, combines their estimates, then shows a suggested price range and model-specific results. The README also describes regional, seller, and timing factors, plus model-performance information. The implementation is concentrated in app.py; the README documents the prediction stages, but the supplied excerpts do not show their full call structure.
Main entry points: app.py Input Preparation · preprocessor.pkl Feature Preprocessor · webapp_config.json Model Config · best_lgbm_optuna.pkl LightGBM Estimate
Components 15
User Inputs
- Phone Details
app.py - Listing Details
app.py - Seller Details
app.py
Price Prediction
- Input Preparation
app.py - Feature Preprocessor
models/preprocessor.pkl - LightGBM Estimate
models/best_lgbm_optuna.pkl - XGBoost Estimate
models/hybrid_xgb_model.pkl - CatBoost Estimate
models/hybrid_cat_model.pkl - Hybrid Ensemble
app.py
Results
- Price and Range
app.py - Model Comparison
app.py - Performance Metrics
app.py
Model Assets
- Brand Encoder
models/brand_encoder.pkl - Model Config
models/webapp_config.json
Other components
- Buyer or Seller
Connections 21
- Buyer or Seller → Phone Details: enters details
README.md - Buyer or Seller → Listing Details: enters details
README.md - Buyer or Seller → Seller Details: enters details
README.md - Phone Details → Input Preparation: supplies features
README.md - Listing Details → Input Preparation: supplies features
README.md - Seller Details → Input Preparation: supplies features
README.md - Input Preparation → Brand Encoder: encodes categories
README.md - Input Preparation → Feature Preprocessor: normalizes features
README.md - Feature Preprocessor → LightGBM Estimate: provides features
README.md - Feature Preprocessor → XGBoost Estimate: provides features
README.md - Feature Preprocessor → CatBoost Estimate: provides features
README.md - LightGBM Estimate → Hybrid Ensemble: provides estimate
README.md - XGBoost Estimate → Hybrid Ensemble: provides estimate
README.md - CatBoost Estimate → Hybrid Ensemble: provides estimate
README.md - Hybrid Ensemble → Price and Range: produces price
README.md - Model Config → Price and Range: sets range metrics
README.md - Price and Range → Buyer or Seller: shows estimate
README.md - Hybrid Ensemble → Model Comparison: shows model outputs
app.py - Model Config → Performance Metrics: provides metrics
app.py - Model Comparison → Buyer or Seller: shows comparison
app.py - Performance Metrics → Buyer or Seller: shows metrics
app.py