Skip to content

BhaveshBhakta/Taxi-Price-Prediction-Using-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš– Taxi Price Prediction Using Machine Learning

πŸ“Œ Project Overview

This project focuses on building a machine learning pipeline to predict taxi trip prices based on multiple real-world factors such as distance, time, weather, traffic conditions, and fare structure. Through robust preprocessing and regression modeling, we aim to generate accurate trip cost predictions to assist ride-hailing services, pricing engines, and transportation analytics.


🧠 Technical Highlights

  • Dataset: Contains 1000 real-world taxi trips with 11 features such as:

    • Trip_Distance_km, Passenger_Count, Traffic_Conditions, Weather, Trip_Duration_Minutes, and various fare components.
  • Preprocessing:

    • Imputed missing values using formula-based calculations and default statistical methods
    • Applied log transformation for skewed distributions
    • Encoded categorical variables using LabelEncoder
  • Feature Selection:

    • Used correlation thresholding to select highly relevant features
  • Models Applied:

    • Ridge Regression
    • XGBoost Regressor
    • Random Forest Regressor
    • AdaBoost Regressor
    • Gradient Boosting Regressor
    • Bagging Regressor
  • Best Performance:

    • πŸ“ˆ Gradient Boosting Regressor achieved RΒ² score of 0.914

🎯 Purpose and Applications

  • πŸ’Έ Dynamic Fare Estimation for ride-hailing apps and taxi meters
  • πŸ“‰ Cost prediction under varying traffic and weather scenarios
  • πŸ§ͺ Educational reference for regression modeling, feature engineering, and data cleaning
  • πŸ› οΈ Basis for building real-time APIs and fare calculators

βš™οΈ Installation

Clone the repository

git clone https://github.com/BhaveshBhakta/Taxi-Price-Prediction-Using-ML.git
cd axi-Price-Prediction-Using-ML

🀝 Collaboration

Contributions are welcome! If you’d like to improve model performance, add new visualizations, or integrate the project with a web interface.

Releases

No releases published

Packages

No packages published