Skip to content

This project aims to predict the price of laptops based on their technical specifications using various machine learning models. The dataset includes attributes like brand, processor, RAM, memory type, GPU, screen size, and operating system.

Notifications You must be signed in to change notification settings

Soumyapro/Laptop-Price-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Laptop Price Predictor

Laptop Price

A machine learning project that predicts laptop prices based on their specifications using various regression models. This end-to-end pipeline includes data preprocessing, feature engineering, model training, evaluation, and visualization.


πŸ“Š Project Overview

This project explores a dataset of laptops and their specifications to predict prices using multiple regression techniques. The best-performing model is deployed through a pipeline that includes preprocessing and prediction steps.


πŸ”§ Technologies Used

  • Python 🐍
  • Pandas
  • NumPy
  • Matplotlib & Seaborn
  • Scikit-learn
  • XGBoost

πŸ“ Dataset

The dataset laptop_data.csv includes the following features:

  • Company (Brand)
  • Type (Notebook, Ultrabook, etc.)
  • RAM, Weight, Screen Size
  • Processor, GPU, Operating System
  • Memory (HDD, SSD, etc.)
  • Target Variable: Price

πŸ§ͺ Models Implemented

  • Linear Regression
  • Ridge & Lasso Regression
  • Decision Tree Regressor
  • K-Nearest Neighbors Regressor
  • Random Forest Regressor βœ… (Best Performance)
  • Gradient Boosting, AdaBoost, Extra Trees
  • XGBoost
  • Support Vector Regressor (SVR)

πŸ† Best Model Performance

Model: Random Forest Regressor
Hyperparameters:

  • n_estimators = 100
  • max_depth = 15
  • max_samples = 0.5
  • max_features = 0.75

Evaluation Metrics:

Metric Value
RΒ² Score 0.88
MAE 0.15 (after scaling)

About

This project aims to predict the price of laptops based on their technical specifications using various machine learning models. The dataset includes attributes like brand, processor, RAM, memory type, GPU, screen size, and operating system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published