Git Product home page Git Product logo

mot's Introduction

MOT

Implementations of the algorithms in the paper Approximative Algorithms for Multi-Marginal Optimal Transport and Free-Support Wasserstein Barycenters (von Lindheim, 2022). If you only want to solve the corresponding barycenter problem, see also this repository.

Using the emd OT solver from the Python Optimal Transport (POT) package, which is a wrapper of this network simplex solver, which, in turn, is based on an implementation in the LEMON C++ library.

Installation

  1. Download the code or clone the Github repository with
git clone https://github.com/jvlindheim/mot.git
  1. For the code in mot.py, there is the following dependencies: numpy, matplotlib.pyplot, the cdist function from scipy.spatial.distance and the emd function from the POT library. You can install them e.g. using pip via
pip install --user numpy scipy matplotlib POT

If you want to run the demo notebook, you will also need to have Jupyter Notebook or JupyterLab installed.

mot's People

Contributors

jvlindheim 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.