Coder Social home page Coder Social logo

evilyingyun / 2017-mcom-unbalanced-ot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpeyre/2017-mcom-unbalanced-ot

0.0 1.0 0.0 27.61 MB

L. Chizat, G. Peyré, B. Schmitzer, F-X. Vialard. Scaling Algorithms for Unbalanced Transport Problems. Preprint Arxiv:1607.05816, 2016.

MATLAB 1.78% C 0.39% Jupyter Notebook 10.58% TeX 87.25%

2017-mcom-unbalanced-ot's Introduction

This toolbox is a basic implementation of Sinkhorn-like algorithms to solve for OT-related problems.

An overview of the toolbox is provided as a Jupyter notebook.

The computational methods and relevant bibliography can be found in:

L. Chizat, G. Peyré, B. Schmitzer, F-X. Vialard. Scaling Algorithms for Unbalanced Transport Problems. Preprint Arxiv:1607.05816, 2016.

Comparison of balanced vs. unbalanced interpolation computed using barycenters with varying weights:

Balanced interpolation Unbalanced interpolation

The unbalanced interpolation is able to correctly interpolate between the modes of distribution by introducing mass creation/destruction during the interpolation.

Main features

This toolbox implements log-domain computations, so it is always stable, even for small values of epsilon. It implements both balanced (exact marginal constraints) and unbalanced transport (relaxed marginal constraints). It uses a heavy-ball-like extrapolation to speed-up convergence.

Computational functions

  • sinkhorn_log.m: computation of OT couplings between two distributions.
  • barycenter_log.m: computation of OT barycenters between two or more distributions.

Parameters

The main parameters are:

  • epsilon is the entropic regularization strength. Increasing speeds-up the convergence but leads to blurrier results.
  • options.rho controls balanced (tau=Inf) vs unbalanced (0<tau<Inf) trade-off.
  • options.tau introduces extrapolation acceleration (tau=0 means no extrapolation, -1<tau<0 means extrapolation).

Scripts

  • test_sinkhorn.m
  • test_barycenters.m: test the computation of barycenters between two distributions, and compares in particular the balanced to the unbalanced cases.

Copyright

Copyright (c) 2017 Gabriel Peyré

2017-mcom-unbalanced-ot's People

Contributors

gpeyre avatar

Watchers

James Cloos 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.