Code Monkey home page Code Monkey logo

mets-10's Introduction

Data Pipeline and Analysis Code for paper "Metropolitan Segment Traffic Speeds from Massive Floating Car Data in 10 Cities" (MeTS-10)

Tests Code style: flake8 Code formatter: black

About this repo

This is a github repo to share code for the MeTS-10 Dataset Paper (pre-print, submitted for review).

MeTS-10 Data Pipeline

The major parts of the speed classification pipeline are provided as a series of scripts that allow to generate a road graph and derive speed classifications from available traffic movies end-to-end.

The following diagram gives an overview:

Find the technical data description in README_DATA_SPECIFICATION.md.

MeTS-10 analysis

This part contains code to generate the figures in the paper.

TL;DR

conda env update -f environment.yaml
conda activate mets-10
python data_pipeline/dp01_movie_aggregation.py --help

Setup

Jupytext Generate a Jupyter config, if you don’t have one yet, with jupyter notebook --generate-config edit .jupyter/jupyter_notebook_config.py and append the following:

c.NotebookApp.contents_manager_class="jupytext.TextFileContentsManager"
c.ContentsManager.default_jupytext_formats = ".ipynb,_nb.py"

and restart Jupyter, i.e. run

jupyter notebook

Note: .jupyter is mostly present in your home directory.

See also this post.

Contribution conventions

For the data pipeline, we run formatter and linter using pre-commit (https://pre-commit.com/), see configuration .pre-commit-config.yaml:

pre-commit install # first time only
pre-commit run --all

See https://blog.mphomphego.co.za/blog/2019/10/03/Why-you-need-to-stop-using-Git-Hooks.html

In order to temporarily skip running pre-commit, run git commit -n.

Cite

Please cite this repo along with the pre-print:

@misc{https://doi.org/10.48550/arxiv.2302.08761,
  doi = {10.48550/ARXIV.2302.08761},
  url = {https://arxiv.org/abs/2302.08761},
  author = {Neun, Moritz and Eichenberger, Christian and Xin, Yanan and Fu, Cheng and Wiedemann, Nina and Martin, Henry and Tomko, Martin and Ambühl, Lukas and Hermes, Luca and Kopp, Michael},
  keywords = {Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {Metropolitan Segment Traffic Speeds from Massive Floating Car Data in 10 Cities},
  publisher = {arXiv},
  year = {2023},
  copyright = {arXiv.org perpetual, non-exclusive license}
}

Supplementary Material (revision 2023-04-20)

mets-10's People

Contributors

chenkins avatar moritz9 avatar

Stargazers

Jiaming YIN avatar  avatar  avatar  avatar Yannick Wölker avatar  avatar vishal avatar

Watchers

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