Skip to content

Just as the name suggests, this project's solo goal is to simplify finding laptops in a world where there are ton of companies offering variety of features and specifications at numerous price differences. This project aims to be the best analysis tool of what should be the price of a standard laptop with desired specifications. Follow for moreπŸ˜‡βœ¨

License

Notifications You must be signed in to change notification settings

SartHak-0-Sach/Laptop-Price-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Laptop Price Predictor

Laptop Price Predictor

Welcome to the Laptop Price Predictor! πŸŽ‰
This project combines machine learning models with intuitive user interfaces to predict laptop prices based on specifications and features.

πŸ“‹ Table of Contents

  1. πŸ“„ Description
  2. ✨ Features
  3. πŸ“Š Dataset Details
  4. πŸ€– Regressor Models
  5. 🌟 Selected Models
  6. πŸ’΅ Price Currency Conversion
  7. πŸ–₯️ Running the Application
  8. πŸ“ˆ Metrics
  9. πŸ’‘ Future Enhancements
  10. 🌟 Contribution

πŸ“„ Description

The Laptop Price Predictor uses various regression models to predict laptop prices based on their specifications. Designed to support data enthusiasts and tech shoppers, this tool is powered by Python and machine learning libraries.

✨ Features

  • πŸ’» Predict laptop prices based on features like company, CPU, RAM, GPU, and more.
  • πŸ” Experiment with multiple regression models for optimal results.
  • 🌍 Supports currency conversion from INR to USD.
  • πŸ“ˆ Evaluate models using key metrics: RΒ² Score and Mean Absolute Error (MAE).

πŸ“Š Dataset Details

The dataset includes 1302 laptops with 12 attributes, sourced from Amazon (2017-2018).

Attribute Description
Company Name Laptop brand (e.g., Dell, HP, Apple)
Type Name Form factor (e.g., Ultrabook, Gaming)
Laptop Size Screen size (in inches)
Screen Resolution Display resolution (e.g., 1920x1080)
CPU Processor type
RAM Memory capacity (GB)
Memory Storage capacity (HDD/SSD)
GPU Graphics card details
Operating System OS type (e.g., Windows, macOS)
Price (INR) Price in Indian Rupees

πŸ€– Regressor Models

Model Description
Multiple Linear Regression Basic regression model
Ridge Regression Regularized linear regression
Lasso Regression Sparse regression
k-Nearest Neighbors (k-NN) Distance-based prediction
Decision Tree Tree-based regression model
Support Vector Machine Kernel-based regression
Random Forest Ensemble tree model
Extra Trees Advanced ensemble model
Adaptive Boost (AdaBoost) Boosting-based ensemble
Gradient Boost Gradient-based optimization
XGBoost Highly efficient boosting
Voting Regressor Combines multiple models
Stacking Regressor Model stacking for better accuracy

🌟 Selected Models

1. Random Forest Regressor

  • RΒ² Score: 88.78%
  • Mean Absolute Error: 15.94%

2. Voting Regressor (Random Forest + Gradient Boost)

  • RΒ² Score: 89.27%
  • Mean Absolute Error: 15.37%

πŸ’΅ Price Currency Conversion

This project supports price conversion from INR to USD.
Default exchange rate: 1 INR = 0.012 USD

st.title(f"\nPrice: {round(predicted_price * 0.012, 2)} USD")  

The exchange rate can be easily updated as needed.

πŸ–₯️ Running the Application

  1. Install required dependencies:

    pip install -r requirements.txt  
  2. Launch the Streamlit application:

    streamlit run app.py  

πŸ“ˆ Metrics

The performance of each regression model is evaluated using:

  • RΒ² Score: Measures the variance explained by the model.
  • Mean Absolute Error (MAE): Captures the average prediction error.

πŸ’‘ Future Enhancements

  • Integration with live datasets for real-time predictions.
  • Incorporating deep learning models for improved accuracy.
  • Adding support for additional currency conversions and visualization dashboards.

🌟 Contribution

πŸ’‘ Ideas? Contributions are always welcome! Submit issues, pull requests, or share your feedback to help improve this project.

⭐ If you found this project useful, don't forget to star the repository! 😊


Made with ❀️ by Sarthak Sachdev for machine learning enthusiasts

Follow for more😁✌🏻

About

Just as the name suggests, this project's solo goal is to simplify finding laptops in a world where there are ton of companies offering variety of features and specifications at numerous price differences. This project aims to be the best analysis tool of what should be the price of a standard laptop with desired specifications. Follow for moreπŸ˜‡βœ¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published