GithubHelp home page GithubHelp logo

nunoedgarhubsoftphotoflow / alfi-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artix41/alfi-pytorch

0.0 0.0 0.0 86 KB

Code for the paper Recurrent Machines for Likelihood-Free Inference

Python 100.00%

alfi-pytorch's Introduction

Automatic Likelihood-Free Inference

Official PyTorch implementation of the paper Recurrent Machines for Likelihood-Free Inference, published at the NeurIPS 2018 Workshop on Meta-Learning. arxiv:1811.12932

Installation

  • Clone the repository:
git clone [email protected]:artix41/ALFI-pytorch.git
cd ALFI-pytorch/
  • Inside an Anaconda environment, install the requirements from the file requirements.txt:
conda install --file requirements.txt

Usage

General

The script run-experiments.py starts one or several experiments described in the configuration file(s) given in input. Its general usage is run-experiments.py [-h] [-l] [-v {0,1,2,3}] configs_dir output_dir. For instance, if you want to run the default experiment on the simplified particle physics simulator (called Weinberg), you can run:

run-experiments.py configs/weinberg.yaml outputs -v 3

Experiments are saved automatically every save_every iterations (given in the configuration file). If you want to load a previously saved experiment, simply use the -l loading option:

run-experiments.py configs/weinberg.yaml outputs -v 3 -l

Use your own simulator

To implement your own simulator you should write a class that inherits from the abstract class Simulator.py (details about method given in the code file). If possible you should implement your simulator in pytorch for computation efficience. However you can also use your own simulator by implementing the inherited class as a simple bridge between your simulator and the ALFI framework, just taking care of mapping your data from/to tensorial variables.

Contacts

If you have any question, please contact Antoine Wehenkel ([email protected]) or Arthur Pesah ([email protected]).

alfi-pytorch's People

Contributors

artix41 avatar awehenkel 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.