Giter Site home page Giter Site logo

rtaiello / big-data-taxi-fare-amount Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 3.23 MB

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

Home Page: https://www.kaggle.com/c/new-york-city-taxi-fare-prediction

License: MIT License

Jupyter Notebook 100.00%
kaggle lgbm spark machine-learning regression taxi waze-api

big-data-taxi-fare-amount's Introduction

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

big-data-taxi-fare-amount's People

Contributors

andreabac3 avatar rtaiello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.