Code Monkey home page Code Monkey logo

linearsinkhorn's Introduction

Linear Time Sinkhorn Divergences using Positive Features

Code of the paper by Meyer Scetbon and Marco Cuturi

Approximation of the Regularized Optimal Transport in Linear Time

In this work, we show that one can approximate the regularized optimal transport in linear time with respect to the number of samples for some usual cost functions, e.g. the square Euclidean distance. We present the time-accuracy tradeoff between different methods to compute the regularized OT when the samples live on the unit sphere. figure

The implementation of the recursive Nystrom is adapted from the MATLAB implementation (https://github.com/cnmusco/recursive-nystrom).

Generative Adversarial Network

We also show that our method offers a constructive way to build a kernel and then a cost function adapted to the problem in order to compare distributions using optimal transport. We show some visual results of the generative models learned using our method on CIFAR10 (left) and CelebA (right).

The implementation of the WGAN is a code adapted from the MMD-GAN implementation (https://github.com/OctoberChang/MMD-GAN).

This repository contains a Python implementation of the algorithms presented in the paper.

linearsinkhorn's People

Contributors

meyerscetbon avatar

Stargazers

 avatar Piyushi Manupriya avatar Jeong-Sik Lee avatar XXXX avatar Cheng Han avatar  avatar  avatar Jun Li avatar Wang Yubo avatar TKY_BEER avatar  avatar Ruiyi Zhang avatar SP Liew avatar Liqun Chen avatar  avatar YuAng avatar

Watchers

James Cloos avatar  avatar

linearsinkhorn's Issues

How to calculate the actual transport plan?

Hi, thanks for the great work! Unlike the OT-GAN example, I want to use the transport plan in my learning algorithm and directly supervise the transport plan. However, if I use c_{\theta}(x, y):=-\varepsilon \log \varphi_{\theta}(x)^{T} \varphi_{\theta}(y) as the cost matrix to calculate the final transport plan, it is hard to converge (the scaling vector u^* and v^* are calculated with the proposed LinearSinkhorn). Is it the right way to recover the transport plan?

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.