How saad-7-2020/projet_mobile_prices works
This repository trains a phone price-range classifier and serves predictions through a Streamlit form. The training workflow reads the CSV, scales features, fits logistic regression, and saves the scaler and model; the app loads those artifacts, transforms submitted phone attributes, predicts a class, and displays it. The graph reflects the two provided scripts and their explicit file interactions; no README description or additional service wiring was available.
Main entry points: projet_mobile_prices.py Phone feature form · train_model.py Training pipeline · scaler.pkl Saved scaler · modele.pkl Saved classifier
Components 9
Model training
- Phone prices CSV
mobile_prices.csv - Training pipeline
train_model.py - Saved scaler
scaler.pkl - Saved classifier
modele.pkl
Prediction app
- Phone feature form
projet_mobile_prices.py - Feature scaling
projet_mobile_prices.py - Price classifier
projet_mobile_prices.py - Predicted price class
projet_mobile_prices.py
Other components
- User
Connections 10
- Training pipeline → Phone prices CSV: reads
train_model.py - Training pipeline → Saved scaler: saves scaler
train_model.py - Training pipeline → Saved classifier: saves model
train_model.py - User → Phone feature form: enters features
projet_mobile_prices.py - Phone feature form → Feature scaling: submits features
projet_mobile_prices.py - Phone feature form → Saved scaler: loads scaler
projet_mobile_prices.py - Phone feature form → Saved classifier: loads model
projet_mobile_prices.py - Feature scaling → Price classifier: scaled features
projet_mobile_prices.py - Price classifier → Predicted price class: predicts class
projet_mobile_prices.py - Predicted price class → User: displays result
projet_mobile_prices.py