- A Machine Learning based web application that predicts laptop prices based on configuration details.
-
This project uses Data Analysis, Feature Engineering and supervised Machine Learning techniques to predict laptop prices based on hardware specifications.
-
The model is trained on a Laptop Price Dataset and deployed using Streamlit for real-time predictions.
-
Python
-
Pandas
-
NumPy
-
Seaborn
-
Matplotlib
-
Scikit-learn
-
XGBoost
-
Streamlit
-
Pickle
-
Linear Regression
-
Ridge Regression
-
Lasso Regression
-
K-Nearest Neighbors (KNN)
-
Decision Tree Regressor
-
Random Forest Regressor
-
Extra Trees Regressor
-
AdaBoost Regressor
-
Gradient Boosting Regressor
-
XGBoost Regressor
-
Voting Regressor
-
Stacking Regressor
-
Dataset: Laptop Price Dataset
-
Source: Kaggle
-
Target Variable: Price
-
Problem Type: Regression
-
Company
-
TypeName
-
RAM
-
Weight
-
Touchscreen
-
IPS Display
-
Screen Resolution
-
CPU
-
GPU
-
HDD
-
SSD
-
Operating System
-
Removed duplicate rows
-
Checked missing values
-
Dropped unnecessary columns
-
Converted RAM & Weight into numeric format
-
Extracted Touchscreen and IPS features
-
Calculated PPI (Pixels Per Inch)
-
Simplified CPU brands (Intel i3/i5/i7, AMD, Others)
-
Split Storage into HDD and SSD
-
Categorized Operating Systems (Windows, Mac, Others)
-
Applied log transformation on Price
-
Used ColumnTransformer
-
Applied OneHotEncoder
-
Built complete ML Pipeline using Scikit-learn
-
R2 Score
-
Mean Absolute Error (MAE)
-
Random Forest
-
Extra Trees
-
Gradient Boosting
-
Stacking Regressor
✅ Ensemble models performed better than simple linear models.
-
Price strongly depends on RAM, SSD, CPU, GPU, and PPI
-
Log transformation improved performance
-
Feature engineering significantly boosted accuracy
-
Ensemble techniques provided the best results
-
Final model saved using Pickle
-
Integrated into a Streamlit web app
-
Select laptop brand
-
Choose specifications
-
Click Predict Price
-
Get instant predicted price
-
#Install dependencies
-
pip install -r requirements.txt
-
#Run the Streamlit app
-
streamlit run app.py
-
Hyperparameter tuning using GridSearchCV
-
Add Cross-Validation
-
Deploy on Streamlit Cloud
-
Add visualization dashboard
-
Add feature importance graph
-
Try Deep Learning models