Downloads · 30 days
0
yotam22/car-price-regression
car-price-regression is a machine learning model from yotam22. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2025
Repo size
22.8 MB
Likes
2
Public
Click a slice to open those files.
.mp412.9 MB · 48%
From the Hugging Face model README
This repository contains my full machine learning project, built as part of Assignment #2 in the Introduction to Data Science course at Reichman University. The goal of the project was to analyze a large cars dataset, clean and enrich the data, visualize insights, engineer features, and ultimately train two predictive models:
Both final models are exported as .pkl files and available here in the repository.
The dataset includes almost 19,000 cars, with features such as:
Before modeling, I performed cleaning, handled outliers, and created new engineered features.
Key steps:
This resulted in a cleaner dataset with 18,864 rows, much more suitable for modeling.



I engineered several new features and cleaned others:

I also added a brand-new feature using KMeans clustering (Cluster).
This helped group vehicles into 3 natural segments and improved model performance.
I trained 3 regression models:



The best model was Random Forest Regressor, achieving strong results (lowest MAE/RMSE and highest R²). The final model is exported here as:
car_price_random_forest.pkl
I converted the price variable into 3 balanced classes using qcut:
Then I trained:
The Logistic Regression model gave the best results and is exported as:
car_classification_logistic.pkl
| File | Description |
|---|---|
car_price_random_forest.pkl | Final regression model |
car_classification_logistic.pkl | Final classification model |
Assignment_notebook.ipynb | Full Google Colab notebook |
README.md | This documentation |
A video walkthrough of the entire project, including:
Will be attached here.
This project gave me practical experience with:
All work is included in this repository and submitted as required.
Thank you for reviewing! Yotam Gil https://colab.research.google.com/drive/1XQCA3yYdm1k0bnV02Gz1eC3uFdy_N0p2#scrollTo=LcN1CpJ0h_tt