Giter Site home page Giter Site logo

ravi72munde / scala-spark-cab-rides-predictions Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 8.0 1.62 MB

A big data project for predicting prices of Uber/Lyft rides depending on the weather

License: MIT License

Scala 91.39% Java 8.61%
uber predict-prices weather scala streaming spark spark-streaming

scala-spark-cab-rides-predictions's Introduction

scala-spark-cab-rides-predictions

A big data project for predicting prices of Uber/Lyft rides depending on the weather.

Dataset was compiled and uploaded to Kaggle. Can be found here https://www.kaggle.com/ravi72munde/uber-lyft-cab-prices

Contributors:

  • Ravi Munde
  • Karan Barai

Project Structure :

  • cab-price-connector - Data Collection Scala Project
  • Databricks_Prediction_code.html - Anlysis and Spark Model(From Databricks.com)
  • Cab_Price_Prediction.ipynb - Random Forrest Model in Python

Data Model:

CabPrice

root
    |- cab_type : String
    |- destination : String
    |- distance: Float
    |- id: String
    |- name: String
    |- price: Float
    |- product_id: String
    |- source: String
    |- surge_multiplier: String
    |- time_stamp:Long

Weather

root
    |- clouds : Float
    |- humidity : Float
    |- location : Float
    |- location : String
    |- temp : String
    |- pressure : Float
    |- wind : Float

Actor System

Sample log of Actor System Running on EC2

INFO [CabRideSystem-akka.actor.default-dispatcher-2] a.DynamoActor - received 12 number of weather records
INFO [CabRideSystem-akka.actor.default-dispatcher-4] a.DynamoActor - Weather Batch processed on DynamoDB
INFO [CabRideSystem-akka.actor.default-dispatcher-9] a.DynamoActor - received 156 number of cab price records
INFO [CabRideSystem-akka.actor.default-dispatcher-8] a.DynamoActor - Cab Prices Batch processed on DynamoDB
INFO [CabRideSystem-akka.actor.default-dispatcher-7] a.Master - Cab ride data piped to Dynamo Actor
INFO [CabRideSystem-akka.actor.default-dispatcher-13] a.DynamoActor - received 156 number of cab price records
INFO [CabRideSystem-akka.actor.default-dispatcher-15] a.DynamoActor - Cab Prices Batch processed on DynamoDB

NOTE: AWS Creditials need to be put in environment vairables

Model Evaluation Matrices

  • Regression R_squared = 0.62
  • Random Forrest Regression's Price Prediction Accuracy : 92.79 %
  • Random Forrest Classification Surge Prediction Accuracy: 77.69 %

Confusion Matrix for the Classifier
drawing

scala-spark-cab-rides-predictions's People

Contributors

baraikaran avatar ravi72munde avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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