Skip to content

Heart of the Taxi surge predictor, Data Encoding, Feature extraction and predictions using Decision trees. Dataset provided by locale.ai

Notifications You must be signed in to change notification settings

thisiseshan/Taxi-surge-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taxi surge predictor

Data Cleaning and Encoding

Primary task in this project revolved aorud data cleansing and making normal data function according to the model. This project required Area code, Month, Day and Time code.

Encoding

---
Area: 0,1,2...
Day of the week: 0 -> Monday, 1 -> Tuesday,...
Time: 0 -> 12 am to 1 am, 1 -> 1 am to 2 am,...
Count: Number of taxi requests coded as 1, 2, 3...
---

Area, Day, Time and Count encoding

Using Decision tree Regressors

Decision tree Regressors are best explained by Georgios Drakos at his Medium Blog Decision Tree Regressor explained in depth.

I used Scikit's Decision Tree Regressor to complete this task. Information about this can be found at their documentation.

from sklearn.tree import DecisionTreeRegressor 

Decision tree from sklearn.tree.DecisionTreeRegressor

Using this Decision tree for my data, I get a score of 1.0. the result is predicted for an input of [0,0,0].

View this project on my website 🚀

About

Heart of the Taxi surge predictor, Data Encoding, Feature extraction and predictions using Decision trees. Dataset provided by locale.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published