Downloads · 30 days
0
yuvalkorem1/vehicle-price-predictor
vehicle-price-predictor is a tabular classification model from yuvalkorem1. Use it for the tabular classification task on the model card, and read the license before you ship it in a product.
Author: Yuval Course: Data Science Goal: Predicting used vehicle prices and classifying market tiers using advanced ML. [https://www.youtube.com/watch?v=RAbcuBYAg2o]
Downloads · 30 days
0
Access
Public
Updated Dec 25, 2025
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.pkl1.2 GB · 100%
From the Hugging Face model README
Author: Yuval Course: Data Science Goal: Predicting used vehicle prices and classifying market tiers using advanced ML.
[https://www.youtube.com/watch?v=RAbcuBYAg2o]
The goal is to solve information asymmetry in the used car market by creating an Automated Valuation Model (AVM).
I started by analyzing the market distribution to understand the data structure. I started by looking at the raw data. I began removing irrelevant fields that wouldn’t affect the price, such as license plate number, URL link, and similar features. Then, assuming the dataset was large enough and contained many missing values, I decided to drop a lot of data (anything with missing or extreme values). After finishing that work, I realized this approach was incorrect, so I pivoted. Additionally, I converted categorical variables into numerical ones using ordinal encoding (for example, mapping ‘bad’, ‘good’, and ‘excellent’ to 1, 2, and 3). I also applied one-hot encoding to the vehicle type feature by splitting it into multiple type-specific columns and then representing each type as a binary indicator.
A critical decision was made regarding missing data.
The market is right-skewed with a long tail of expensive cars.
Most vehicles fall between 50k and 150k miles.
Gasoline engines and Automatic transmissions dominate the market.
I hypothesized that Year and Odometer alone are not enough. I used K-Means Clustering to create a "Usage Profile".
Distinct groups were identified (e.g., "Garage Queens" vs. "High Mileage").
Using PCA, I confirmed that the clusters are mathematically distinct.
I trained three models. Here is the baseline performance vs. the final winner.
The Linear model relied heavily on the engineered clusters (Green bars below), proving the feature engineering was effective.
The Random Forest model was smart enough to use the raw Year and Odometer directly to find non-linear patterns.
Finally, I converted the problem to a classification task (Low 0-10k$ / Mid 10k$-23.5k$ / High budget 23.5k$-100k$ )
Using Quantile Binning, I ensured perfectly balanced classes (33% each).
I trained and evaluated three different classification models:
The model achieved ~85.5% Accuracy and rarely confused "Low" with "High".
Usage_Cluster feature was the #1 strongest predictor for the Linear Model, proving that combining age and mileage creates value.All files are hosted in this repository. Click to download: