How arun-paulraj/mobile-price-classification works
This repository is a Streamlit mobile-price classification application. Users can explore the training data and published classifier metrics, evaluate an uploaded labeled dataset, or enter phone specifications and receive a price category with confidence. The runtime is concentrated in app.py; it loads trained model artifacts and a scaler, and reads CSV data for the overview and comparison pages. The README documents additional evaluation views, while the excerpts show only portions of their implementation, so those capabilities are represented at the application level.
Main entry points: app.py Uploaded test evaluation · scaler.pkl Feature scaler · logistic_regression.pkl Logistic regression · train.csv Training dataset
Components 16
Streamlit application
- Streamlit pages
app.py - Dataset overview
app.py - Model comparison
app.py - Uploaded test evaluation
app.py - Feature prediction
app.py - Metrics and prediction results
app.py
Datasets and metrics
- Training dataset
data/train.csv - Performance metrics
data/metrics.csv
Classification artifacts
- Feature scaler
model/scaler.pkl - Logistic regression
model/logistic_regression.pkl - Decision tree
model/decision_tree_classifier.pkl - K-nearest neighbors
model/knn_classifier.pkl - Naive Bayes
model/naive_bayes_classifier.pkl - Support vector machine
model/svm_classifier.pkl
Other components
- Application user
- Labeled test CSV
Connections 23
- Application user → Streamlit pages: selects page
app.py - Streamlit pages → Dataset overview: routes to
app.py - Streamlit pages → Model comparison: routes to
app.py - Streamlit pages → Uploaded test evaluation: routes to
app.py - Streamlit pages → Feature prediction: routes to
app.py - Dataset overview → Training dataset: reads
app.py - Model comparison → Performance metrics: reads
app.py - Application user → Labeled test CSV: uploads
- Labeled test CSV → Uploaded test evaluation: provides data
app.py - Uploaded test evaluation → Feature scaler: transforms features
app.py - Uploaded test evaluation → Logistic regression: loads selected model
app.py - Uploaded test evaluation → Decision tree: loads selected model
app.py - Uploaded test evaluation → K-nearest neighbors: loads selected model
app.py - Uploaded test evaluation → Naive Bayes: loads selected model
app.py - Uploaded test evaluation → Support vector machine: loads selected model
app.py - Uploaded test evaluation → Metrics and prediction results: displays metrics
app.py - Application user → Feature prediction: enters specifications
app.py - Feature prediction → Feature scaler: transforms features
app.py - Feature prediction → Logistic regression: predicts category
app.py - Feature prediction → Metrics and prediction results: shows category and confidence
app.py - Model comparison → Metrics and prediction results: visualizes metric
app.py - Dataset overview → Metrics and prediction results: shows dataset details
README.md - Uploaded test evaluation → Metrics and prediction results: shows confusion matrix and report
app.py