Coder Social home page Coder Social logo

rkraig / cabi-predict Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 35.63 MB

Predict near-term Capital Bikeshare availability using a random forest and Poisson regression. Display current status and predictions with leaflet.js map visualization.

Python 0.48% CSS 0.01% HTML 0.08% Jupyter Notebook 99.43%
random-forest capital-bikeshare customer-demand poisson-regression sklearn bikeshare-data leafletjs leaflet-map flask

cabi-predict's Introduction

cabi-predict

Capital Bikeshare: Predictions of Near-Term Supply and Demand

This project is a demand and outage predictor for Capital Bikeshare. I take dock status and trip history, weather and calendar data, then fit a random forest regression model to estimate the customer demand for bikes and docks at each bikeshare station as a function of ten predictors:

  • Time of Day
  • Day of Week
  • Day of Year
  • Holiday (Y/N)
  • Year
  • Air Temperature
  • Relative Humidity
  • Wind Speed
  • Precipitation within the past hour
  • Snow depth

I demonstrate this model with a customer-facing app that predicts CaBi demand and station outages in the immediate future. This app scrapes real-time dock status and weather data to form a feature vector, estimates customer demand for bikes and docks using the random forest, then computes outage probabilities with a Poisson model. Predictions are visualized on a map using leaflet.js. Result is published to a web app using Flask, hosted on heroku.

App

https://cabi-predict.herokuapp.com/

(Update: I see that the leaflet.js map of prediction output data has broken on heroku... I have not investigated or fixed that yet.)

cabi-predict's People

Contributors

rkraig avatar

Stargazers

 avatar

Watchers

 avatar

cabi-predict's Issues

Panda version??

It is showing me error with the panda version. I need it for my final project. it would helpful to get the answer asap.
Please specify the exact version.
Thanks

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.