Git Product home page Git Product logo

navjotkhatri / nyc-taxi-trip-time-prediction Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 47.07 MB

Supervised ML - Regression Using Python This dataset was extracted and uploaded for the purpose of experimenting with and learning regression models for time prediction. There is also a lot of room for data cleaning, outliers in the data, and plenty of data to work with for more realistic model training, testing, and validation.

Jupyter Notebook 100.00%
data-cleaning model-training price-prediction regression-models testing-and-validation

nyc-taxi-trip-time-prediction's Introduction

NYC Taxi Trip Time Prediction

Project Overview

The NYC Taxi Trip Time Prediction project aims to develop a machine learning regression model to predict the duration of a taxi trip in New York City based on various input features such as pickup and dropoff locations, time of day, and distance of the trip. The project utilizes historical data on taxi trips in NYC and applies regression algorithms to achieve accurate predictions. The goal is to improve the efficiency and convenience of taxi services by providing more accurate estimates of trip duration for both passengers and drivers.

Python Pandas NumPy Matplotlib Seaborn

Jupyter Notebook Google Colab GitHub

Linear Regression Lasso Regression XGBoost Elastic Net Regression LightGBM

Key Findings

  • Important factors influencing taxi trip duration include pickup and dropoff locations, time of day, and distance of the trip.
  • Vendor 2 is slightly more popular than Vendor 1 with a similar number of trips.
  • Trip duration is shortest at 6 AM and longest during peak hours at 3 PM.
  • Average trip duration increases from Monday to Thursday and then decreases until Sunday.
  • Taxi trips with a higher number of passengers tend to have longer durations.
  • There is a positive correlation between trip distance and trip duration.
Model MAE MSE RMSE MAPE R2 Accuracy
Linear Regression 3.95 25.78 5.07 17.70 0.55 82.29
Lasso Regression 3.95 25.79 5.07 17.72 0.55 82.27
Ridge Regression 3.95 25.78 5.07 17.70 0.55 82.29
Elastic Net Regression 3.95 25.78 5.07 17.70 0.55 82.29
LightGBM 2.84 14.69 3.83 12.96 0.74 87.07
XGboost 2.88 15.01 3.87 13.06 0.73 86.93

Tools and Skills

  • Python: Coding and implementing machine learning algorithms.
  • Pandas: Data manipulation and preprocessing.
  • NumPy: Numerical computations.
  • Matplotlib and Seaborn: Data visualization.
  • Scikit-learn: Implementing machine learning models.

Takeaways

  • Effective data preprocessing and feature engineering are crucial for accurate predictive models.
  • Machine learning models like LightGBM can achieve high accuracy in predicting taxi trip durations.
  • Exploratory data analysis is essential for understanding underlying patterns and trends in the data.

Acknowledgments

This project was completed as part of the Data Science Trainee program at AlmaBetter.

LinkedIn

nyc-taxi-trip-time-prediction's People

Contributors

navjotkhatri avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.