Giter VIP home page Giter VIP logo

minimalist's Introduction

MINIMALIST

Written by Giulio Isacchini, MPIDS Göttingen - ENS Paris and Natanael Spisak, ENS Paris

The code is written in Python3. Last updated on 24-05-2021

Reference: MINIMALIST: Mutual INformatIon Maximization for Amortized Likelihood Inference from Sampled Trajectories, Giulio Isacchini, Natanael Spisak, Armita Nourmohammad, Thierry Mora and Aleksandra M. Walczak

To reproduce the figures

In order to reproduce the plots you need to run the following commands.

  1. Install the mimsbi package

Enter the mimsbi folder and run the command python setup.py install

  1. Run analysis

To run the analysis for the the 4 task run the script run_analysis.py with the options: ou,bd,sir and/or lorenz.

  1. Plot the results.

For Figure 2, run fig2.py

For Figure 3 run fig3.py

For Figure 4, run fig4.py

Extended usage

This directory includes a stable version of the mimsbi package.

The package allows to infer the likelihood-to-evidence ratio model using one of three objective functions: MINE, FDIV or BCE. The package has implemented simulators for the processes studied in the MINIMALIST paper: Ornstein-Uhlenbeck, birth-death, SIR and Lorenz processes. To add another functionality one needs to add a new Simulator class to mimsbi/models. Then, inference can be performed using the DensityRatioEstimator class. For example of usage go to the scripts directory where separate files can be used to

  1. simulate the data scripts/simulate.py
  2. tune network hyperparameters scripts/infer_hyperpars.py
  3. likelihood-to-evidence ratio inference scripts/infer_estimators.py
  4. posterior evaluation scripts/compare_estimators.py

To use the above scripts with a new model, its specifications need to be added in scripts/utils.py return_pars function. A simple data generation to posterior evaluation protocol is also available in the mimsbi/tutorial.ipynb Jupyter notebook.

Requisites

  • tensorflow>2.1
  • numpy
  • pandas
  • scipy
  • matplotlib
  • tqdm

minimalist's People

Contributors

giulioisac avatar n-t-n-el avatar

Stargazers

Sam Foreman avatar

Watchers

James Cloos avatar  avatar

Forkers

ernestamandine

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.