Coder Social home page Coder Social logo

gfdrr / mobilkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindearth/mobilkit

2.0 2.0 0.0 290.35 MB

A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data

License: MIT License

Python 100.00%

mobilkit's Introduction

GitHub release (latest by date) GitHub GitHub contributors Documentation Status

mobilkit

A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data.

mobilkit provides a set of tools to analyze mobility traces to assess the users response to extreme events. Try mobilkit without installing it in a MyBinder notebook: Binder

Table of contents

  1. Documentation
  2. Collaborate with us
  3. Installation
  4. Tutorials
  5. Examples
  6. Citing
  7. Credits and contacts

Documentation

Full documentation with examples can be found online here, otherwise see the notebooks in docs/examples for a step-by-step coverage of the library or the ones in examples/ for a more detailed showcase of the package's capabilities.

Collaborate with us

mobilkit is an active project and any contribution is welcome.

If you would like to contribute or add functionalities to mobilkit, feel free to fork the project, open an issue and contact us.

Installation

Install with pip

You need to have a running version of Dask on your system. Once you have it you can create an environment and install mobilkit there.

  1. Create an environment mobilkit

     python3 -m venv mobilkit
    
  2. Activate

     source mobilkit/bin/activate
    
  3. Update pip

     pip install --upgrade pip
    
  4. Install mobilkit

     pip install mobilkit
    
  5. OPTIONAL to use mobilkit on the jupyter notebook

    • Activate the virutalenv:

        source mobilkit/bin/activate
      
    • Install jupyter notebook:

        pip install jupyter 
      
    • Run jupyter notebook

        jupyter notebook
      
    • (Optional) install the kernel with a specific name

        ipython kernel install --user --name=mobilkit_env
      

If you already have scikit-mobility installed, skip the environment creation and run these commands from the skmob anaconda environment.

mobilkit by default will only install core packages needed to run the main functions. There are three optional packages of dipendencies (the mobilkit[complete] installs everything):

  • [viz] will install contextily, needed to visualize map backgrounds in certain viz functions;
  • [doc] will install all the needed packages to build the docs;
  • [skmob] will install scikit-mobility as well.

Install with conda

TODO

Test the installation

> source activate mobilkit
(mobilkit)> python
>>> import mobilkit
>>>

Examples

Several notebooks are found in the docs/examples folder, we resume here the most important ones.

Quickstart

We show the basic usage and functionalities in the mobilkit_tutorial.ipynb notebook.

Citing

If you use mobilkit please cite us:

Enrico Ubaldi, Takahiro Yabe, Nicholas K. W. Jones, Maham Faisal Khan, Satish V. Ukkusuri and Emanuele Strano Mobilkit: A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data, 2021, KDD 2021 Humanitarian Mapping Workshop, https://arxiv.org/abs/2107.14297

Bibtex:

@misc{ubaldi2021mobilkit,
    title={Mobilkit: A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data},
    author={Enrico Ubaldi and Takahiro Yabe and Nicholas K. W. Jones and Maham Faisal Khan and Satish V. Ukkusuri and Emanuele Strano},
    year={2021},
    eprint={2107.14297},
    primaryClass={cs.CY},
    archivePrefix={arXiv},
}

Credits and contacts

This code has been developed by Mindearth, the Global Facility for Disaster Reduction and Recovery (GFDRR) and Purdue University.

Funding was provided by the Spanish Fund for Latin America and the Caribbean (SFLAC) under the Disruptive Technologies for Development (DT4D) program.

The code is released under the MIT license (see the LICENSE file for details).

mobilkit's People

Stargazers

Nicole Paul avatar Danaja Maldeniya avatar

Watchers

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