Git Product home page Git Product logo

citibikeavailabilitypredictor's Introduction

Jessica Zhao, jmz2131

Big Data Analytics, Columbia University

#Final Project: Citi Bike Availability Predictor

Overview

Citi Bike is a popular bike-share program with stations throughout NYC that a rider can pick up a bike from, or return a bike to. Previous projects on Citi Bike have analyzed popular stations and trip start/end locations, but have not addressed issues with availability and capacity of each station. Particularly at more popular locations, such as in Midtown Manhattan, there are sometimes no available bikes during popular time periods. For potential Citi Bike users that are considering getting a Citi Bike membership, as well as for current Citi Bike members who are looking to plan ahead, it would be extremely useful to be able to predict their chances of getting a bike from a given station at a particular day of week/time of day.

Usage

In order to use the analytical tool, you need to first collect data using the scraper.

In order to use the scraper, you must first have a Postgres database setup with a database named 'citibike' that the current user has access to.

Using the scraper

In order to run the scraper:

  • Install ruby version 2.3.1.
  • Install the bundler gem.
  • Navigate to the scraper directory in this repo.
  • Run bundle install to install the dependencies.
  • Run ruby scrape.rb. Let this run "forever."

Using the analytic tool

  • Install maven and spark.
  • Navigate to the root of this repository.
  • Run mvn install to install the dependencies
  • Modify the build_and_run.sh file to point to your copy of spark-submit and the driver class if you have a non-standard maven dependency directory.
  • Run build_and_run.sh and follow the on screen prompts.

citibikeavailabilitypredictor's People

Contributors

jessicaazhao avatar

Watchers

Lev E. Givon avatar James Cloos avatar  avatar  avatar  avatar  avatar Shuguan avatar  avatar  avatar  avatar Tyler_Yan avatar Ghazal Fazelnia 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.