POT Python Optimal Transport Logo
  • POT: Python Optimal Transport
  • Quickstart Guide
  • Examples gallery
    • OT and regularized OT
      • Introduction to Optimal Transport with Python
      • Optimal Transport for fixed support
      • Optimal Transport between empirical distributions
      • Optimal Transport with different ground metrics
      • Fast and accurate transport bijections using BSP-OT
      • Geometry of OT distances
      • Sinkhorn Divergence and Debiased OT solvers
      • Regularized OT with generic solver
      • Quickstart Guide
      • Optimal Transport solvers comparison
      • Sparse Optimal Transport
    • Differentiable OT with PyTorch
      • Different gradient computations for regularized optimal transport
      • Dual OT solvers for entropic and quadratic regularized OT with Pytorch
      • Solve Fused Unbalanced Gromov Wasserstein with Adam
      • Optimizing the Gromov-Wasserstein distance with PyTorch
      • Solving Many Optimal Transport Problems in Parallel
      • Sliced Wasserstein barycenter and gradient flow with PyTorch
      • Spherical Sliced-Wasserstein Embedding on Sphere
      • Continuous OT plan estimation with Pytorch
      • Wasserstein unmixing with PyTorch
      • Wasserstein 1D (flow and barycenter) with PyTorch
      • Wasserstein 2 Minibatch GAN with PyTorch
    • Gromov-Wasserstein (GW) and Fused GW
      • Barycenter of labeled graphs with FGW
      • Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example
      • Plot Fused-Gromov-Wasserstein
      • Comparison of Fused Gromov-Wasserstein solvers
      • Graph classification with Template Based Fused Gromov Wasserstein
      • Gromov-Wasserstein example
      • Gromov-Wasserstein Barycenter example
      • (Fused) Gromov-Wasserstein Linear Dictionary Learning
      • Plot partial FGW for subgraph matching
      • Quantized Fused Gromov-Wasserstein examples
      • Semi-relaxed (Fused) Gromov-Wasserstein example
      • Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning
    • Unbalanced and Partial OT
      • 1D Unbalanced optimal transport
      • 1D Wasserstein barycenter demo for Unbalanced distributions
      • Sliced Unbalanced optimal transport
      • Translation Invariant Sinkhorn for Unbalanced Optimal Transport
      • Numerically-stable entropic partial Wasserstein (log-domain solver)
      • Partial Wasserstein in 1D
      • Partial Wasserstein and Gromov-Wasserstein example
      • Regularization path of l2-penalized unbalanced optimal transport
      • 2D examples of exact and entropic unbalanced optimal transport
    • OT in 1D and Sliced Wasserstein
      • OT distance on the Circle
      • Sliced OT Plans
      • Sliced Wasserstein Distance with input scaling (DataScaler)
      • Sliced Wasserstein Distance on 2D distributions
      • Spherical Sliced Wasserstein on distributions in S^2
    • OT on Gaussian and Gaussian Mixture Models
      • OT between GMM : plan and maps in 1D
      • Gradient Flow for GMM-OT distance
    • Factored an Low-Rank OT
      • Optimal transport with factored couplings
      • Low rank Gromov-Wasterstein between samples
      • Low rank Sinkhorn
      • Nyström approximation for OT
    • Wasserstein and (F)GW barycenters
      • 1D Wasserstein barycenter demo
      • 1D Wasserstein barycenter: exact LP vs entropic regularization
      • Convolutional Wasserstein Barycenter example
      • Debiased Sinkhorn barycenter demo
      • 2D free support Wasserstein barycenters of distributions
      • OT Barycenter with Generic Costs Demo
      • 2D free support Sinkhorn barycenters of distributions
      • Gaussian Bures-Wasserstein barycenters
      • Generalized Wasserstein Barycenter Demo
      • Gaussian Mixture Model OT Barycenters
      • Optimal Transport Barycenter solvers comparison
    • Domain adaptation with OT
      • OT for domain adaptation
      • OT for image color adaptation
      • OT for domain adaptation on empirical distributions
      • OT for multi-source target shift
      • OT with Laplacian regularization for domain adaptation
      • Linear OT mapping estimation
      • OT mapping estimation for domain adaptation
      • OT for image color adaptation with mapping estimation
      • OTDA unsupervised vs semi-supervised setting
    • Other OT problems
      • Row and column alignments with CO-Optimal Transport
      • Entropic Wasserstein Component Analysis
      • Smooth and Strongly Convex Nearest Brenier Potentials
      • Wasserstein Discriminant Analysis
      • Weak Optimal Transport VS exact Optimal Transport
      • Computing 1-dimensional Barycenters via d-MMOT
      • Logo of the POT toolbox
      • Detecting outliers by learning sample marginal distribution with CO-Optimal Transport and by using unbalanced Co-Optimal Transport
      • Semi-discrete OT: a toy 2D problem
      • Spectral-Grassmann OT on dynamical systems operators
      • Stochastic examples
  • User guide
  • API and modules
  • Releases
  • Contributors
  • Contributing to POT
  • Code of conduct
POT Python Optimal Transport
  • Examples gallery
  • View page source

Examples gallery

This is a gallery of all the POT example files.

OT and regularized OT

Image

Introduction to Optimal Transport with Python

Introduction to Optimal Transport with Python
Image

Optimal Transport for fixed support

Optimal Transport for fixed support
Image

Optimal Transport between empirical distributions

Optimal Transport between empirical distributions
Image

Optimal Transport with different ground metrics

Optimal Transport with different ground metrics
Image

Fast and accurate transport bijections using BSP-OT

Fast and accurate transport bijections using BSP-OT
Image

Geometry of OT distances

Geometry of OT distances
Image

Sinkhorn Divergence and Debiased OT solvers

Sinkhorn Divergence and Debiased OT solvers
Image

Regularized OT with generic solver

Regularized OT with generic solver
Image

Quickstart Guide

Quickstart Guide
Image

Optimal Transport solvers comparison

Optimal Transport solvers comparison
Image

Sparse Optimal Transport

Sparse Optimal Transport

Differentiable OT with PyTorch

Image

Different gradient computations for regularized optimal transport

Different gradient computations for regularized optimal transport
Image

Dual OT solvers for entropic and quadratic regularized OT with Pytorch

Dual OT solvers for entropic and quadratic regularized OT with Pytorch
Image

Solve Fused Unbalanced Gromov Wasserstein with Adam

Solve Fused Unbalanced Gromov Wasserstein with Adam
Image

Optimizing the Gromov-Wasserstein distance with PyTorch

Optimizing the Gromov-Wasserstein distance with PyTorch
Image

Solving Many Optimal Transport Problems in Parallel

Solving Many Optimal Transport Problems in Parallel
Image

Sliced Wasserstein barycenter and gradient flow with PyTorch

Sliced Wasserstein barycenter and gradient flow with PyTorch
Image

Spherical Sliced-Wasserstein Embedding on Sphere

Spherical Sliced-Wasserstein Embedding on Sphere
Image

Continuous OT plan estimation with Pytorch

Continuous OT plan estimation with Pytorch
Image

Wasserstein unmixing with PyTorch

Wasserstein unmixing with PyTorch
Image

Wasserstein 1D (flow and barycenter) with PyTorch

Wasserstein 1D (flow and barycenter) with PyTorch
Image

Wasserstein 2 Minibatch GAN with PyTorch

Wasserstein 2 Minibatch GAN with PyTorch
Image

Gradient Flow for GMM-OT distance

Gradient Flow for GMM-OT distance
Image

Graph classification with Template Based Fused Gromov Wasserstein

Graph classification with Template Based Fused Gromov Wasserstein

Gromov-Wasserstein (GW) and Fused GW

Image

Barycenter of labeled graphs with FGW

Barycenter of labeled graphs with FGW
Image

Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example

Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example
Image

Plot Fused-Gromov-Wasserstein

Plot Fused-Gromov-Wasserstein
Image

Comparison of Fused Gromov-Wasserstein solvers

Comparison of Fused Gromov-Wasserstein solvers
Image

Graph classification with Template Based Fused Gromov Wasserstein

Graph classification with Template Based Fused Gromov Wasserstein
Image

Gromov-Wasserstein example

Gromov-Wasserstein example
Image

Gromov-Wasserstein Barycenter example

Gromov-Wasserstein Barycenter example
Image

(Fused) Gromov-Wasserstein Linear Dictionary Learning

(Fused) Gromov-Wasserstein Linear Dictionary Learning
Image

Plot partial FGW for subgraph matching

Plot partial FGW for subgraph matching
Image

Quantized Fused Gromov-Wasserstein examples

Quantized Fused Gromov-Wasserstein examples
Image

Semi-relaxed (Fused) Gromov-Wasserstein example

Semi-relaxed (Fused) Gromov-Wasserstein example
Image

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning

Unbalanced and Partial OT

Image

Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example

Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example
Image

Semi-relaxed (Fused) Gromov-Wasserstein example

Semi-relaxed (Fused) Gromov-Wasserstein example
Image

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning
Image

Detecting outliers by learning sample marginal distribution with CO-Optimal Transport and by using unbalanced Co-Optimal Transport

Detecting outliers by learning sample marginal distribution with CO-Optimal Transport and by using unbalanced Co-Optimal Transport
Image

1D Unbalanced optimal transport

1D Unbalanced optimal transport
Image

1D Wasserstein barycenter demo for Unbalanced distributions

1D Wasserstein barycenter demo for Unbalanced distributions
Image

Sliced Unbalanced optimal transport

Sliced Unbalanced optimal transport
Image

Translation Invariant Sinkhorn for Unbalanced Optimal Transport

Translation Invariant Sinkhorn for Unbalanced Optimal Transport
Image

Numerically-stable entropic partial Wasserstein (log-domain solver)

Numerically-stable entropic partial Wasserstein (log-domain solver)
Image

Partial Wasserstein in 1D

Partial Wasserstein in 1D
Image

Partial Wasserstein and Gromov-Wasserstein example

Partial Wasserstein and Gromov-Wasserstein example
Image

Regularization path of l2-penalized unbalanced optimal transport

Regularization path of l2-penalized unbalanced optimal transport
Image

2D examples of exact and entropic unbalanced optimal transport

2D examples of exact and entropic unbalanced optimal transport

OT in 1D and Sliced Wasserstein

Image

Geometry of OT distances

Geometry of OT distances
Image

OT distance on the Circle

OT distance on the Circle
Image

Sliced OT Plans

Sliced OT Plans
Image

Sliced Wasserstein Distance with input scaling (DataScaler)

Sliced Wasserstein Distance with input scaling (DataScaler)
Image

Sliced Wasserstein Distance on 2D distributions

Sliced Wasserstein Distance on 2D distributions
Image

Spherical Sliced Wasserstein on distributions in S^2

Spherical Sliced Wasserstein on distributions in S^2
Image

1D Unbalanced optimal transport

1D Unbalanced optimal transport
Image

Sliced Unbalanced optimal transport

Sliced Unbalanced optimal transport
Image

Partial Wasserstein in 1D

Partial Wasserstein in 1D

OT on Gaussian and Gaussian Mixture Models

Image

Gaussian Bures-Wasserstein barycenters

Gaussian Bures-Wasserstein barycenters
Image

Gaussian Mixture Model OT Barycenters

Gaussian Mixture Model OT Barycenters
Image

Linear OT mapping estimation

Linear OT mapping estimation
Image

OT between GMM : plan and maps in 1D

OT between GMM : plan and maps in 1D
Image

Gradient Flow for GMM-OT distance

Gradient Flow for GMM-OT distance

Factored an Low-Rank OT

Image

Optimal transport with factored couplings

Optimal transport with factored couplings
Image

Low rank Gromov-Wasterstein between samples

Low rank Gromov-Wasterstein between samples
Image

Low rank Sinkhorn

Low rank Sinkhorn
Image

Nyström approximation for OT

Nyström approximation for OT

Wasserstein and (F)GW barycenters

Image

1D Wasserstein barycenter demo

1D Wasserstein barycenter demo
Image

1D Wasserstein barycenter: exact LP vs entropic regularization

1D Wasserstein barycenter: exact LP vs entropic regularization
Image

Convolutional Wasserstein Barycenter example

Convolutional Wasserstein Barycenter example
Image

Debiased Sinkhorn barycenter demo

Debiased Sinkhorn barycenter demo
Image

2D free support Wasserstein barycenters of distributions

2D free support Wasserstein barycenters of distributions
Image

OT Barycenter with Generic Costs Demo

OT Barycenter with Generic Costs Demo
Image

2D free support Sinkhorn barycenters of distributions

2D free support Sinkhorn barycenters of distributions
Image

Gaussian Bures-Wasserstein barycenters

Gaussian Bures-Wasserstein barycenters
Image

Generalized Wasserstein Barycenter Demo

Generalized Wasserstein Barycenter Demo
Image

Gaussian Mixture Model OT Barycenters

Gaussian Mixture Model OT Barycenters
Image

Optimal Transport Barycenter solvers comparison

Optimal Transport Barycenter solvers comparison
Image

Barycenter of labeled graphs with FGW

Barycenter of labeled graphs with FGW
Image

Gromov-Wasserstein Barycenter example

Gromov-Wasserstein Barycenter example
Image

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning

Semi-relaxed (Fused) Gromov-Wasserstein Barycenter as Dictionary Learning

Domain adaptation with OT

Image

OT for domain adaptation

OT for domain adaptation
Image

OT for image color adaptation

OT for image color adaptation
Image

OT for domain adaptation on empirical distributions

OT for domain adaptation on empirical distributions
Image

OT for multi-source target shift

OT for multi-source target shift
Image

OT with Laplacian regularization for domain adaptation

OT with Laplacian regularization for domain adaptation
Image

Linear OT mapping estimation

Linear OT mapping estimation
Image

OT mapping estimation for domain adaptation

OT mapping estimation for domain adaptation
Image

OT for image color adaptation with mapping estimation

OT for image color adaptation with mapping estimation
Image

OTDA unsupervised vs semi-supervised setting

OTDA unsupervised vs semi-supervised setting

Other OT problems

Image

Row and column alignments with CO-Optimal Transport

Row and column alignments with CO-Optimal Transport
Image

Entropic Wasserstein Component Analysis

Entropic Wasserstein Component Analysis
Image

Smooth and Strongly Convex Nearest Brenier Potentials

Smooth and Strongly Convex Nearest Brenier Potentials
Image

Wasserstein Discriminant Analysis

Wasserstein Discriminant Analysis
Image

Weak Optimal Transport VS exact Optimal Transport

Weak Optimal Transport VS exact Optimal Transport
Image

Computing 1-dimensional Barycenters via d-MMOT

Computing 1-dimensional Barycenters via d-MMOT
Image

Logo of the POT toolbox

Logo of the POT toolbox
Image

Detecting outliers by learning sample marginal distribution with CO-Optimal Transport and by using unbalanced Co-Optimal Transport

Detecting outliers by learning sample marginal distribution with CO-Optimal Transport and by using unbalanced Co-Optimal Transport
Image

Semi-discrete OT: a toy 2D problem

Semi-discrete OT: a toy 2D problem
Image

Spectral-Grassmann OT on dynamical systems operators

Spectral-Grassmann OT on dynamical systems operators
Image

Stochastic examples

Stochastic examples
Previous Next

© Copyright 2016-2026, POT Contributors.

Built with Sphinx using a theme provided by Read the Docs.
Python Optimal Transport 0.9.7
Versions: Release Development Code
Advertisement
Advertisement