Skip to content

Build a Recurrent Neural Networks model to predict the taxi ride demand in the city of Porto.

Notifications You must be signed in to change notification settings

shubham51297/Daily-taxi-ride-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Daily-taxi-ride-prediction

• Build a Recurrent Neural Networks model to predict the taxi ride demand in the city of Porto using time series data for the previous two years. The model predicted the taxi demand based on the time and day of the week.

Dataset

Origin :https://archive.ics.uci.edu/ml/datasets/Taxi+Service+Trajectory+-+Prediction+Challenge%2C+ECML+PKDD+2015 Hosted :https://drive.google.com/file/d/1TpBZ8hSBdENDaxFfcM7TB20VHpCm4soj/view?usp=sharing

Each data sample corresponds to one completed trip. It contains a total of 9 (nine) features, described as follows:

TRIP_ID: (String) It contains a unique identifier for each trip;

CALL_TYPE: (char) It identifies the way used to demand this service. It may contain one of three possible values:

  • 'A' if this trip was dispatched from the central;
  • 'B' if this trip was demanded directly to a taxi driver at a specific stand;
  • 'C' otherwise (i.e. a trip demanded on a random street).

ORIGIN_CALL: (integer) It contains a unique identifier for each phone number which was used to demand, at least, one service. It identifies the trip's customer if CALL_TYPE='A'. Otherwise, it assumes a NULL value;

ORIGIN_STAND: (integer): It contains a unique identifier for the taxi stand. It identifies the starting point of the trip if CALL_TYPE='B'. Otherwise, it assumes a NULL value;

TAXI_ID: (integer): It contains a unique identifier for the taxi driver that performed each trip;

TIMESTAMP: (integer) Unix Timestamp (in seconds). It identifies the trip's start;

DAYTYPE: (char) It identifies the daytype of the trip's start. It assumes one of three possible values:

  • 'B' if this trip started on a holiday or any other special day (i.e. extending holidays, floating holidays, etc.);
  • 'C' if the trip started on a day before a type-B day;
  • 'A' otherwise (i.e. a normal day, workday or weekend).

IMPORTANT NOTICE: This field has not been correctly calculated. Please see the following links as reliable sources for official holidays in Portugal. [Web Link] [Web Link]

MISSING_DATA: (Boolean) It is FALSE when the GPS data stream is complete and TRUE whenever one (or more) locations are missing;

POLYLINE: (String): It contains a list of GPS coordinates (i.e. WGS84 format) mapped as a string. The beginning and the end of the string are identified with brackets (i.e. [ and ], respectively). Each pair of coordinates is also identified by the same brackets as [LONGITUDE, LATITUDE]. This list contains one pair of coordinates for each 15 seconds of trip. The last list item corresponds to the trip's destination while the first one represents its start.

How to run ?

Use google colabsheet directly https://colab.research.google.com/drive/1vFMGAKNF34K5ekcQxPrxo21wVJ4Paoi0?usp=sharing or Import the ipynb file shared in colab

or use pip install requirements.txt to install required libraries. The python files are there with the docs

Library used

Numpy Sklearn Pandas Matplotlib pydrive google.colab oauth2client

About

Build a Recurrent Neural Networks model to predict the taxi ride demand in the city of Porto.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published