Skip to content

A collection of machine learning models for predicting laptop prices

License

Notifications You must be signed in to change notification settings

LuluW8071/Laptop-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laptop-Price-Prediction

A collection of machine learning models for predicting laptop prices

Laptop-Price-Prediction

Dependencies To install the required Python packages you can use the following command:
pip install -r requirements.txt
Datasets Reference The dataset is about laptops configuration with prices containing 1302 laptops data with 12 columns Company name,type namee, laptop size in (inches), Screen resolution, CPU, RAM, Memory, GP, Operating system, Price in INR. The dataset was collected from Amazon in 2017-18.
Regressor Model Choices
  • Multiple Linear Regression
  • Ridge Regression
  • Lasso Regression
  • k-Nearest Neighbors (k-NN)
  • Decision Tree
  • Support Vector Machine (SVM)
  • Random Forest
  • ExtraTrees
  • Adaptive Boost (AdaBoost)
  • Gradient
  • Extreme Gradient Boost (XGBoost)
  • Voting
  • Stacking
  • Random Forest Regressor Model - Personal Customization
  • Voting Regressor Model (Rf+Gradient) - Personal Customization
Selected Regression Model
  • Random Forest Regressor Model - Personal Customization
R2 Score: 88.78 %
Mean Absolute Error: 15.94 %
  • Voting Regressor Model (Rf+Gradient) - Personal Customization
R2 Score: 0.89 ( 89.27 %)
Mean Absolute Error: 0.15 ( 15.37 %)
Price Currency Conversion [Optional] This line of code indicates currency conversion of laptop prices from INR to USD (1 Indian Rupee = 0.012 US Dollar). You can customize the currency exchange rate that suits your need.

st.title(f"\nPrice: {round(predicted_price * 0.012, 2)} USD")
Run app.py To run the app.py, load the dependecies requirements and use the following command:

streamlit run app.py

✨ Enjoy the demo


Feel free to send issues if you face any problem.
✨ Don't forget to star the repo :)