GithubHelp home page GithubHelp logo

rakesh2009 / prediction_of_cab_booking Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 768 KB

Predicting the cab booking using ML algorithms by considering the various conditions of seasons, day timing, & environment

License: MIT License

Jupyter Notebook 100.00%
ml correlation-analysis outlier-analysis missing-values-analysis feature-engineering gridsearchcv regression-analysis ensemble-learning python

prediction_of_cab_booking's Introduction

Prediction_of_cab_booking

Basic details about problem :

Cab booking system is the process where renting a cab is automated through an app throughout a city. Using this app,people can book a cab from one location to another location. Being a cab booking app company, exploiting theunderstanding ofcab supply and demand could increase the efficiency of their service and enhance user experience by minimizing waiting time.

Objective of this work is to combine historical usage pattern along with the open data sources like weather data to forecast cab booking demand in a city.

Data :

Hourly renting data span of two years is provided. Data is randomly divided into train and test set. We must predict the total count of cabs booked in each hour covered by the test set, using the information available prior to the booking period.

Here train labels i.e. ‘Total_booking’ are provided in seperarte csv file & we must append to train dataset before building the model.

Descriptions of the columns present in the datasets as below.

  • datetime-hourly date +timestamp

  • season-spring, summer, autumn, winter

  • holiday-whether the day is considered a holiday

  • workingday-whether the day is neither a weekend nor holiday

  • weather-Clear , Cloudy, Light Rain, Heavy temp-temperature in Celsius

  • atemp-"feels like" temperature in Celsius

  • humidity-relative humidity

  • windspeed-wind speed

Total_booking-number of total booking

Model building:

Following tasks are performed for building the efficient model & executing the project-

Task1:

1.Visualize data using different visualizations to generate interesting insights.

2.Outlier Analysis

3.Missing value analysis

4.Visualizing Total_booking Vs other features to generate insights

5.Correlation Analysis

Task2:

1.Feature Engineering

2.Grid search

3.Regression Analysis

4.Ensemble Model

Finally one best model has been choosen for predicting the total cab bookings of test data.

Dependencies:

Python 3+, jupyter notebbook, Pandas, Numpy, EDA, Sklearn, Supervised learning, Linear regression, Ensemble learning, Decision tree, Random forest, SVR, Bagging, Adaboost, Gradientboost

Purpose:

The purpose of this project is to gain insights in following topics

Pratical implementation of -

  • EDA analysis of data
  • Outlier detection & removal
  • finding missing values & replacing with suitable values
  • plotting of various features on graphs for better intution using seaborn & matplotlib
  • correlation analysis using heatmap
  • feature engineering
  • ML alogarithms & Ensemble learning

Conclusion:

  • This work can be directly used for predicting the cab booking system for any practical applications

  • Above procedure will be same for any ML model building & it can be taken as reference for other works also

prediction_of_cab_booking's People

Contributors

rakesh2009 avatar

Watchers

 avatar

Forkers

hareeshnarakkat

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.