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
      • Geometry of OT distances
      • Regularized OT with generic solver
      • Quickstart Guide
      • Optimal Transport solvers comparison
    • Differentiable OT with PyTorch
      • Different gradient computations for regularized optimal transport
      • Dual OT solvers for entropic and quadratic regularized OT with Pytorch
      • Optimizing the Gromov-Wasserstein distance with PyTorch
      • 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
      • Translation Invariant Sinkhorn for Unbalanced Optimal Transport
      • 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 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
    • 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
      • 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

Introduction to Optimal Transport with Python

Introduction to Optimal Transport with Python

Optimal Transport for fixed support

Optimal Transport for fixed support

Optimal Transport between empirical distributions

Optimal Transport between empirical distributions

Optimal Transport with different ground metrics

Optimal Transport with different ground metrics

Geometry of OT distances

Geometry of OT distances

Regularized OT with generic solver

Regularized OT with generic solver

Quickstart Guide

Quickstart Guide

Optimal Transport solvers comparison

Optimal Transport solvers comparison

Differentiable OT with PyTorch

Different gradient computations for regularized optimal transport

Different gradient computations for regularized optimal transport

Dual OT solvers for entropic and quadratic regularized OT with Pytorch

Dual OT solvers for entropic and quadratic regularized OT with Pytorch

Optimizing the Gromov-Wasserstein distance with PyTorch

Optimizing the Gromov-Wasserstein distance with PyTorch

Sliced Wasserstein barycenter and gradient flow with PyTorch

Sliced Wasserstein barycenter and gradient flow with PyTorch

Spherical Sliced-Wasserstein Embedding on Sphere

Spherical Sliced-Wasserstein Embedding on Sphere

Continuous OT plan estimation with Pytorch

Continuous OT plan estimation with Pytorch

Wasserstein unmixing with PyTorch

Wasserstein unmixing with PyTorch

Wasserstein 1D (flow and barycenter) with PyTorch

Wasserstein 1D (flow and barycenter) with PyTorch

Wasserstein 2 Minibatch GAN with PyTorch

Wasserstein 2 Minibatch GAN with PyTorch

Gradient Flow for GMM-OT distance

Gradient Flow for GMM-OT distance

Graph classification with Template Based Fused Gromov Wasserstein

Graph classification with Template Based Fused Gromov Wasserstein

Gromov-Wasserstein (GW) and Fused GW

Barycenter of labeled graphs with FGW

Barycenter of labeled graphs with FGW

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

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

Plot Fused-Gromov-Wasserstein

Plot Fused-Gromov-Wasserstein

Comparison of Fused Gromov-Wasserstein solvers

Comparison of Fused Gromov-Wasserstein solvers

Graph classification with Template Based Fused Gromov Wasserstein

Graph classification with Template Based Fused Gromov Wasserstein

Gromov-Wasserstein example

Gromov-Wasserstein example

Gromov-Wasserstein Barycenter example

Gromov-Wasserstein Barycenter example

(Fused) Gromov-Wasserstein Linear Dictionary Learning

(Fused) Gromov-Wasserstein Linear Dictionary Learning

Plot partial FGW for subgraph matching

Plot partial FGW for subgraph matching

Quantized Fused Gromov-Wasserstein examples

Quantized Fused Gromov-Wasserstein examples

Semi-relaxed (Fused) Gromov-Wasserstein example

Semi-relaxed (Fused) Gromov-Wasserstein example

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

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

Unbalanced and Partial OT

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

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

Semi-relaxed (Fused) Gromov-Wasserstein example

Semi-relaxed (Fused) Gromov-Wasserstein example

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

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

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

1D Unbalanced optimal transport

1D Unbalanced optimal transport

1D Wasserstein barycenter demo for Unbalanced distributions

1D Wasserstein barycenter demo for Unbalanced distributions

Translation Invariant Sinkhorn for Unbalanced Optimal Transport

Translation Invariant Sinkhorn for Unbalanced Optimal Transport

Partial Wasserstein in 1D

Partial Wasserstein in 1D

Partial Wasserstein and Gromov-Wasserstein example

Partial Wasserstein and Gromov-Wasserstein example

Regularization path of l2-penalized unbalanced optimal transport

Regularization path of l2-penalized unbalanced optimal transport

2D examples of exact and entropic unbalanced optimal transport

2D examples of exact and entropic unbalanced optimal transport

OT in 1D and Sliced Wasserstein

Geometry of OT distances

Geometry of OT distances

OT distance on the Circle

OT distance on the Circle

Sliced Wasserstein Distance on 2D distributions

Sliced Wasserstein Distance on 2D distributions

Spherical Sliced Wasserstein on distributions in S^2

Spherical Sliced Wasserstein on distributions in S^2

OT on Gaussian and Gaussian Mixture Models

Gaussian Bures-Wasserstein barycenters

Gaussian Bures-Wasserstein barycenters

Gaussian Mixture Model OT Barycenters

Gaussian Mixture Model OT Barycenters

Linear OT mapping estimation

Linear OT mapping estimation

OT between GMM : plan and maps in 1D

OT between GMM : plan and maps in 1D

Gradient Flow for GMM-OT distance

Gradient Flow for GMM-OT distance

Factored an Low-Rank OT

Optimal transport with factored couplings

Optimal transport with factored couplings

Low rank Gromov-Wasterstein between samples

Low rank Gromov-Wasterstein between samples

Low rank Sinkhorn

Low rank Sinkhorn

Nyström approximation for OT

Nyström approximation for OT

Wasserstein and (F)GW barycenters

1D Wasserstein barycenter demo

1D Wasserstein barycenter demo

1D Wasserstein barycenter: exact LP vs entropic regularization

1D Wasserstein barycenter: exact LP vs entropic regularization

Convolutional Wasserstein Barycenter example

Convolutional Wasserstein Barycenter example

Debiased Sinkhorn barycenter demo

Debiased Sinkhorn barycenter demo

2D free support Wasserstein barycenters of distributions

2D free support Wasserstein barycenters of distributions

OT Barycenter with Generic Costs Demo

OT Barycenter with Generic Costs Demo

2D free support Sinkhorn barycenters of distributions

2D free support Sinkhorn barycenters of distributions

Gaussian Bures-Wasserstein barycenters

Gaussian Bures-Wasserstein barycenters

Generalized Wasserstein Barycenter Demo

Generalized Wasserstein Barycenter Demo

Gaussian Mixture Model OT Barycenters

Gaussian Mixture Model OT Barycenters

Barycenter of labeled graphs with FGW

Barycenter of labeled graphs with FGW

Gromov-Wasserstein Barycenter example

Gromov-Wasserstein Barycenter example

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

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

Domain adaptation with OT

OT for domain adaptation

OT for domain adaptation

OT for image color adaptation

OT for image color adaptation

OT for domain adaptation on empirical distributions

OT for domain adaptation on empirical distributions

OT for multi-source target shift

OT for multi-source target shift

OT with Laplacian regularization for domain adaptation

OT with Laplacian regularization for domain adaptation

Linear OT mapping estimation

Linear OT mapping estimation

OT mapping estimation for domain adaptation

OT mapping estimation for domain adaptation

OT for image color adaptation with mapping estimation

OT for image color adaptation with mapping estimation

OTDA unsupervised vs semi-supervised setting

OTDA unsupervised vs semi-supervised setting

Other OT problems

Row and column alignments with CO-Optimal Transport

Row and column alignments with CO-Optimal Transport

Entropic Wasserstein Component Analysis

Entropic Wasserstein Component Analysis

Smooth and Strongly Convex Nearest Brenier Potentials

Smooth and Strongly Convex Nearest Brenier Potentials

Wasserstein Discriminant Analysis

Wasserstein Discriminant Analysis

Weak Optimal Transport VS exact Optimal Transport

Weak Optimal Transport VS exact Optimal Transport

Computing 1-dimensional Barycenters via d-MMOT

Computing 1-dimensional Barycenters via d-MMOT

Logo of the POT toolbox

Logo of the POT toolbox

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

Stochastic examples

Stochastic examples
Previous Next

© Copyright 2016-2025, POT Contributors.

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