EnYa32 commited on
Commit
cb2162a
Β·
verified Β·
1 Parent(s): 4181e50

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -7
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
  title: MobilePriceClassification
3
- emoji: πŸš€
4
- colorFrom: red
5
- colorTo: red
6
  sdk: docker
7
  app_port: 8501
8
  tags:
@@ -12,9 +12,56 @@ short_description: Classifies smartphone price ranges using a KNN model.
12
  license: mit
13
  ---
14
 
15
- # Welcome to Streamlit!
16
 
17
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
 
18
 
19
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
20
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: MobilePriceClassification
3
+ emoji: πŸ“±
4
+ colorFrom: blue
5
+ colorTo: purple
6
  sdk: docker
7
  app_port: 8501
8
  tags:
 
12
  license: mit
13
  ---
14
 
15
+ # πŸ“± Smartphone Price Range Classification
16
 
17
+ This project is a **machine learning web application** that predicts the **price range of a smartphone**
18
+ based on its technical specifications such as RAM, battery power, screen resolution, and connectivity features.
19
 
20
+ Instead of predicting the exact price, the model classifies smartphones into one of four predefined categories.
21
+
22
+ ---
23
+
24
+ ## 🎯 Price Categories
25
+
26
+ - **0** – Low Cost
27
+ - **1** – Medium Cost
28
+ - **2** – High Cost
29
+ - **3** – Very High Cost
30
+
31
+ ---
32
+
33
+ ## πŸ€– Model Overview
34
+
35
+ - **Algorithm:** K-Nearest Neighbors (KNN)
36
+ - **Preprocessing:** StandardScaler
37
+ - **Task Type:** Multi-class classification
38
+ - **Dataset Size:** 2,000 smartphones with 20 technical features
39
+
40
+ The KNN model achieved **high accuracy and balanced performance** across all price categories.
41
+
42
+ ---
43
+
44
+ ## πŸš€ How the App Works
45
+
46
+ 1. The user enters smartphone specifications.
47
+ 2. The input data is scaled using the same scaler as during training.
48
+ 3. The trained KNN model predicts the price range.
49
+ 4. The predicted class and label are displayed instantly.
50
+
51
+ ---
52
+
53
+ ## πŸ“‚ Project Files
54
+
55
+ - `app.py` – Streamlit application
56
+ - `knn_model.pkl` – Trained KNN model
57
+ - `knn_scaler.pkl` – Fitted StandardScaler
58
+ - `knn_features.pkl` – Feature names and correct input order
59
+ - `requirements.txt` – Python dependencies
60
+
61
+ ---
62
+
63
+ ## ▢️ Run Locally
64
+
65
+ ```bash
66
+ pip install -r requirements.txt
67
+ streamlit run app.py