Skip to content

BigData: The goal is to be able to create a model capable of predicting the taxi fare in New York.

License

Notifications You must be signed in to change notification settings

rtaiello/big-data-taxi-fare-amount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

big-data-taxi-fare-amount 🚕 ... 🚕

License: GPL v3

Description

This repository contains the code used to face the kaggle challenge - Taxi Fare Amount organized by Google Cloud & Coursera.

This is a regression task, the goal is to be able to create a model capable of predicting the taxi fare in New York.
We presented this project during the Big Data exam at Sapienza University of Rome.

For further details you can use the presentation slide.

Metrics

The metrics used is the Root Mean Square Error

Dataset:

The dataset is composed by 5.31gb of CSV with 6 columns. We use 4.000.000 samples over 55.000.000 in the original dataset because we don't have a cluster to train the model with the entire dataset.

Framework used:

The technologies used to tackle the task are: The main framework used is Spark, for data management and for Machine Learning algorithms.

We have used Google Maps APIs (of which the code is not present), the Waze APIs (present code) and OpenStreetMap APIs.

We have used the Light Gradient Boosting Machine Regressor as a model since the implementation of Microsoft Azure.

Real distance:

For us the distance between two points is considered real if it meets 2 conditions:

  1. It takes into account the shape of our planet
  2. It takes into account the roads and their signs that can be crossed by a car

To calculate this distance we start first using the Haversine Distance formula which calculates the air distance, but it does not take into account the type of vehicle and the presence of roads. We use the Haversine Distance as heuristic.

Then we move to the Open Street Map routing project. We instantiate our OSMR API - Docker server and we calculate the real distance between two points.

Authors

Alphabetic order equal contribution

About

BigData: The goal is to be able to create a model capable of predicting the taxi fare in New York.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published