← BACK TO SELECTED WORK
03 / MACHINE LEARNING · DATA

Used Car Price Prediction

From messy data to meaningful estimates.

Machine learning pipeline · Built during the Edunet internship

PythonScikit-LearnPandasNumPyRandom Forestipywidgets
RANDOM FOREST REGRESSIONMODEL / 150 TREES
85.4%TEST R²
01RAW DATA
02CLEANING
03FEATURES
04RANDOM FOREST
05PREDICTION
4,300+ records5-fold cross-validation
01 / STORY

An end-to-end regression pipeline that transforms used-car records into contextual price predictions.

This project started during my internship, where we were simply asked to build a working regression model.

No fixed topic, no fancy problem statement — just regression.

So naturally, being someone who likes cars, I thought, “Why not make something like Cars24?” 😂

The first version worked, but honestly, it wasn’t that great. I submitted it, moved on, and later came back thinking I could definitely do better.

So I reworked the feature engineering, used proper one-hot encoding, tuned the model, and eventually got a much better result using Random Forest Regression — around 85.4% performance.

And yes, I did use AI while improving it. I’m not going to pretend I magically figured out everything alone 💀. I used it as a tool, understood the changes, tested them, and kept improving the model.

For now, it’s still mainly an ML project, but I’m planning to eventually turn it into a proper application.

So basically, what started as “just finish the capstone project” slowly became something I actually wanted to keep building.

THE PROBLEM

Used-car pricing depends on interacting features, and raw records contain skewed distributions and outliers that can distort a model.

THE SOLUTION

A structured preprocessing pipeline applies log transformations, feature engineering and percentile-based outlier removal before fitting a Random Forest regressor. An interactive interface makes the resulting predictions accessible.

4,300+RECORDS PROCESSED
85.4%TEST R²
150RANDOM FOREST TREES
5-foldCROSS-VALIDATION
02 / ARCHITECTURE

How the pieces connect.

  1. 014,300+ raw records
  2. 02Cleaning + feature engineering
  3. 03150-tree Random Forest
  4. 04Evaluation + prediction UI
03 / CAPABILITIES

Built into the product.

  • Preprocessing and feature engineering
  • Log transformations and outlier removal
  • 150-tree Random Forest regression
  • 5-fold cross-validation
  • Interactive prediction interface
  • Input validation and contextual price visualisation
ENGINEERING

So I reworked the feature engineering, used proper one-hot encoding, tuned the model, and eventually got a much better result using Random Forest Regression — around 85.4% performance.

And yes, I did use AI while improving it. I’m not going to pretend I magically figured out everything alone 💀. I used it as a tool, understood the changes, tested them, and kept improving the model.

Built with: Python • Random Forest Regressor • One-Hot Encoding • ipywidgets • Jupyter/Google Colab

NEXT PROJECT / 01

SpendWise ↗