Skip to content

kehrl/mountain-traffic

Repository files navigation

mountain-traffic

How do traffic patterns differ across mountain passes in Washington state? What is the busiest time of day to travel, and does it vary seasonally?

The ultimate goal is to make a simple app that will let the user input a particular date and see the predicted traffic patterns for that day. Thus far, I have focused on data wrangling, determining patterns in the data, and determining possible features to describe those patterns. I have determined that the following features will be important for the model: daylight hours, holiday, ski area open, week day, and travel direction. The next step is to use supervised learning, starting with multi-target regression, to determine hourly vehicle counts for a training dataset, followed by model validation.

Feedback is appreciated!

Dependencies

  • Python3 (numpy, matplotlib, scipy, pandas, requests, zipfile, html2text, datetime, calendar)

Data

Scripts

  • pull_data.py - Pulls traffic and weather data from the above sources
  • hourly_traffic_*.ipynb - Looks at hourly traffic patterns
  • weather_vs_traffic_*.ipynb - Compares temperature to traffic
  • monthly_patterns.ipynb - Bins traffic data by month, travel direction, and day of week

Libraries

  • weatherlib.py - Converts GHCN daily weather data to a pandas dataframe

About

Traffic patterns over Washington State passes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages