Giter VIP home page Giter VIP logo

rjmcmc-gan's Introduction

Learning the Distribution of an Ensemble of Models Obtained by a Reversible Jump Markov Chain Monte Carlo Algorithm Using Generative Adversarial Networks

DOI

Tolulope Olugboji, Enting Zhou, Walter Hennings, Canberk Ekmekci

UR Seismo, Rochester, NY USA

This repo contains two-dimensional toy problems for which the distribution of an ensemble of models provided by a reversible jump Markov Chain Monte Carlo algorithm is learned using a Wasserstein generative adversarial network.

Requirements

  • PyTorch = 1.13.1
  • Scipy = 1.7.3

Data

An example toy problem is provided inside the "data" folder. Due to space limitations, other two-dimensional toy problems are provided in this Google Drive folder.

Use

You can train a Wasserstein generative adversarial network for a two-dimensional toy problem by running the first two cells of the "main.ipynb" Jupyter notebook. To generate samples from the trained generative adversarial network and to calculate the mean and the standard deviation of the distribution learned by the trained generative adversarial network, you can run the remaining cells of the notebook. With default parameters provided in the notebook, on an NVIDIA A10 GPU, runtime of the training stage is around 5 minutes, and generating 10000 samples from the trained generative adversarial network takes less than 5 seconds.

Note

This repository contains a slightly modified version of the code provided in this Github repository. If you have any problems or questions, please feel free to contact us.

rjmcmc-gan's People

Contributors

cekmekci avatar

Watchers

 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.