Giter Site home page Giter Site logo

xubowenhaoren / mobilitynet-analysis-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mobilitynet/mobilitynet-analysis-scripts

0.0 1.0 0.0 46.16 MB

Repository for scripts to evaluate the e-mission platform using public datasets. Structured to be compatible with binder

License: BSD 3-Clause "New" or "Revised" License

Jupyter Notebook 99.94% Shell 0.01% Python 0.06%

mobilitynet-analysis-scripts's Introduction

Reproducible evaluation of data collection using public data

osx-ubuntu-manual-install exploratory-notebook-test-osx exploratory-notebook-test-binder Check Markdown links

This repository contains juypter notebooks for the evaluation of smartphone app-based data collection. It is designed to be launched with binder https://mybinder.org/ so that other community members can run their own analyses without any additional setup.

Binder

WARNING As you can see from the binder install CI, launching the binder takes ~ 13 seconds. The list of packages is pretty short, but the conda SAT solver takes a long time to resolve the dependency graph on the large conda-forge repo. If the build succeeds in creating the image, but gets stuck in the "Launching server" step, reloading the binder page seems to speed things up.

If you do find anything interesting, please consider contributing your notebook so that others can build on it!

Questions? Since this repository is part of a larger project, all issues are tracked in the central docs repository. If you have a question, as suggested by the open source guide, please file an issue instead of sending an email. Since issues are public, other contributors can try to answer the question and benefit from the answer.

There are many potential ways to interact with the notebooks here. At one extreme, you can do everything using browser UI tools only. At the other, you can use the CLI. And of course, there are tons of other git tools to work with. The instructions here can give you a sense of the options, but feel free to adapt them to your favourite tools.

Quickstart

  1. If you want to write your own code, you may want to start with a template that iterates over the existing data model - https://github.com/MobilityNet/mobilitynet-analysis-scripts/blob/master/Data_exploration_template.ipynb
  2. If you want to run existing analyses, you can use the SF Bay Area experiments as a template:
  • Visualizations from the SF Bay area experiments are in the timeline_* files (e.g. timeline_car_scooter_brex_san_jose.ipynb)

Running existing notebooks

  1. View only: Notebooks with outputs embedded are in the examples_with_outputs folder and can be statically viewed directly in nbviewer (e.g. https://nbviewer.jupyter.org/github/MobilityNet/mobilitynet-analysis-scripts/blob/master/examples_with_outputs/example_visualization_SFBA_first_failed_experiment.ipynb). There are a lot of logs related to data loading and preprocessing at the beginning, so you want to scroll ahead to the results (e.g. https://nbviewer.jupyter.org/github/MobilityNet/mobilitynet-analysis-scripts/blob/master/examples_with_outputs/example_visualization_SFBA_first_failed_experiment.ipynb#Now-for-the-results-(calibration,-phone-view)!)
  2. Interactive, UI-only: Launch the repo in binder and clone one of the example notebooks
  3. Interactive, CLI only:
    1. Fork + clone the repo
    2. Run setup/setup.sh to set up the local environment
      1. you may need to install the correct version of miniconda per instructions
    3. Start a local notebook server (juypter notebook)

Contributing

You can contribute analysis results (easy) or additional data and experiments (more complex but potentially more impactful!)

Contributing analysis results

Please ensure that you contribute cleared notebooks to allow the source control capabilities of GitHub to work well. To clear a notebook, use (Kernel -> Restart & Clear Output).

  1. UI-only:
    1. Download the notebook (Download -> ipynb)
    2. Upload the notebook using the GitHub UI (Upload Files, next to Clone or Download)
  2. CLI only: Follow the instructions on github - i.e.
    1. Create a new branch (e.g. $ git checkout -b)
    2. Commit the new notebook (e.g. $ git add and $ git commit)
    3. Push and generate pull request

Contributing additonal data and experiments

Please see the detailed instructions in the docs.

mobilitynet-analysis-scripts's People

Contributors

shankari avatar singhish avatar xubowenhaoren avatar jesbu1 avatar hariv avatar maufadel avatar

Watchers

James Cloos 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.