Giter VIP home page Giter VIP logo

perturbationmodularity's Introduction

Perturbation Modularity for Dynamical Systems

This repository provides sample Python code for decomposing dynamical systems into weakly-coupled modules using the concept of perturbation modularity. This is defined and explained in the following paper:

A Kolchinsky, AJ Gates, LM Rocha, "Modularity and the spread of perturbations in complex dynamical systems", Physical Review E, 2015. link arxiv

Four Python files are included:

  • examples.py: This includes code to run some example decompositions. The first one is Example 1 from the paper (system of logistic maps coupled in a hierarchically-modular manner). The second and third examples in the code are from Example 2 in the paper (one coupled map lattice [CML] in the modular regime, and one in the diffusive regime). Please note that due to randomization of initial conditions and minor code differences, the output results will not be numerically equal to those reported in the paper.
  • pertmod.py: Library code to find optimal perturbation modularity decompositions.
  • coupledmaps.py: Library code to define dynamical systems from coupled logistic maps.
  • nmi.py: Library code to compute normalize mutual information (NMI) between different decompositions.

In order to run the code, the following libraries need to be installed:

  • numpy
  • scipy for the scipy.sparse sparse matrix library
  • matplotlib for plotting
  • dynpy, a library for running dynamical systems in Python. Installable from PyPi as pip install dynpy or from GitHub as pip install https://github.com/artemyk/dynpy/archive/master.zip. For reference, see the Dynpy GitHub.
  • graphy, a library for generating graphs and running Louvain. Installable from GitHub as pip install https://github.com/artemyk/graphy/archive/master.zip. For reference, see the Graphy GitHub.

perturbationmodularity's People

Contributors

artemyk avatar

Watchers

 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.