https://github.com/maheera421/car-price-prediction-model
A machine learning project that predicts car prices based on a dataset.
https://github.com/maheera421/car-price-prediction-model
column-transformer cross-validation-score feature-encoding feature-engineering imputation mean-absolute-error mean-squared-error one-hot-encoding r2-score random-forest-regressor simple-imputer
Last synced: 2 months ago
JSON representation
A machine learning project that predicts car prices based on a dataset.
- Host: GitHub
- URL: https://github.com/maheera421/car-price-prediction-model
- Owner: maheera421
- Created: 2024-08-20T11:42:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-05T19:48:59.000Z (8 months ago)
- Last Synced: 2025-01-20T20:46:59.446Z (4 months ago)
- Topics: column-transformer, cross-validation-score, feature-encoding, feature-engineering, imputation, mean-absolute-error, mean-squared-error, one-hot-encoding, r2-score, random-forest-regressor, simple-imputer
- Language: Jupyter Notebook
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚗 CarPrice-ML
CarPrice-ML is a machine learning project that predicts car prices based on a dataset with features such as make, color, odometer reading, number of doors, and more. The project uses a Random Forest Regressor model to predict car prices and includes steps to handle missing data, encode categorical features, and evaluate model performance using cross-validation.
## 📋 Project Overview
The dataset contains various features relevant to car pricing, such as the make of the car, its color, odometer reading, number of doors, and the target variable, the price of the car. This project involves preprocessing the data, handling missing values, encoding categorical features, and using a Random Forest Regressor for predicting car prices.
### 📝 Features Used:
- **Make**: The brand of the car.
- **Colour**: The color of the car.
- **Odometer (KM)**: The distance the car has traveled in kilometers.
- **Doors**: The number of doors on the car.
- **Price**: The target variable representing the price of the car.### 📦 Dependencies
All the dependencies required to run the model are listed in the `requirements.txt` file. You can install them using the following command:
```bash
pip install -r requirements.txt
```## 🚀 How to Use
1. Clone the repository:
```bash
gh repo clone https://github.com/maheera421/Car-Price-Prediction-Model.git
```2. Install the required dependencies:
```bash
pip install -r requirements.txt
```3. Open and run the `CarPrice-ML.ipynb` notebook to preprocess the data, train the model, and evaluate its performance.
## 📊 Model Evaluation
The project evaluates the model using cross-validation with the following metrics:
- **R-squared**: Measures the proportion of variance in the dependent variable that is predictable from the independent variables.
- **Mean Squared Error (MSE)**: Measures the average of the squares of the errors, i.e., the difference between the observed and predicted values.
- **Mean Absolute Error (MAE)**: Measures the average magnitude of the errors in a set of predictions, without considering their direction.The results obtained using cross-validation help in assessing the accuracy and performance of the model.