Giter VIP home page Giter VIP logo

pass_closure's Introduction

Pass_Closure

A service predicting the probability of Snoqualmie Pass Road Closure

Problem: Snoqualmie Pass drivers need to be better prepared for disruption to their winter travel plans

Solution: A service predicting the probability of Snoqualmie Pass Closure based on historical and weather data

Product: pass-closure

At pass-closure.com users are able to see the probability of Snoqualmie Pass Closure over the next 15 days. The website was created using Flask and is hosted on AWS.

High level solution diagram:

Data used:

  • Historic weather data from NOAA using the ASOS (Automated Surface Observing Systems) for Stampede Pass
  • Snoqualmie Pass closure data requested from WSDOT
  • Forecast weather data scraped from weather.com to feed into model

Modeling:

Baseline:

I used a logistic regression model as my baseline model with basic data of temperature and 1s/0s for: precipitation, overcast, poor-visibility, windy.

Final Model:

I tried other models and features including Random Forest and Gradient Boosting. Then chose a random forest model as my final model with aggregated daily data including year, month, day and get_dummies for day of week as well as the original data.

Accessing the project:

Clone the repo, then run the following commands:

  • from the src folder:
    • python initialize_db.py
    • Note - because this is an hourly process the first data will be populated to the MongoDB after an hour
  • from the website folder:
    • export FLASK_APP=web_app.py
    • flask run

Future work:

  • Move to a hourly granularity for at least the first 3 days, with 2 separate models, to give users a better idea of the best time of day to use the pass
  • Expand to other frequently used mountain passes

Sources:

  • Washington State Department of Transport (WSDOT)
  • Robert Sherer's dressing for the weather project used as a reference for web scraping: repo

pass_closure's People

Contributors

leannebaldwin avatar

Watchers

James Cloos avatar

Forkers

tinkerbuzz

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.