Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fatimaafzaal/laptop_price_prediction
A machine learning project for predicting laptop prices using Gradient Boosting and Random Forest regressors.
https://github.com/fatimaafzaal/laptop_price_prediction
ensemble-learning ensemble-model gradient-boosting laptop-price-prediction price-prediction random-forest regression-models regresssion
Last synced: 1 day ago
JSON representation
A machine learning project for predicting laptop prices using Gradient Boosting and Random Forest regressors.
- Host: GitHub
- URL: https://github.com/fatimaafzaal/laptop_price_prediction
- Owner: fatimaAfzaal
- Created: 2024-06-05T14:21:56.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T08:39:09.000Z (5 months ago)
- Last Synced: 2024-06-22T18:21:08.814Z (5 months ago)
- Topics: ensemble-learning, ensemble-model, gradient-boosting, laptop-price-prediction, price-prediction, random-forest, regression-models, regresssion
- Language: Jupyter Notebook
- Homepage:
- Size: 472 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laptop Price Prediction
This project involves predicting laptop prices using various machine learning models. The dataset contains specifications of laptops and their prices.
## Table of Contents
- Dataset
- Data Preprocessing
- Exploratory Data Analysis (EDA)
- Model Building
- Model Evaluation## Dataset
The dataset includes laptop specifications like RAM, storage, and processor type, along with the corresponding prices.## Data Preprocessing
1. Load the dataset using pandas.
2. Drop irrelevant columns ('Number of Ratings' and 'Number of Reviews').
3. Handle missing values.
4. Convert categorical variables to numerical using one-hot encoding.## Exploratory Data Analysis (EDA)
1. Visualize the distribution of laptop prices.
2. Analyze the distribution of RAM sizes.
3. Explore the relationship between RAM size and laptop price.## Model Building
1. Split the data into training and testing sets.
2. Train a Gradient Boosting Regressor.
3. Train a Random Forest Regressor for comparison.## Model Evaluation
1. Calculate Mean Squared Error (MSE), Mean Absolute Error (MAE), and R² Score for both models on training and testing data.
2. Perform cross-validation to validate the models.