Examples gallery
This is a gallery of all the POT example files.
OT and regularized OT
![](../_images/sphx_glr_plot_OT_2D_samples_thumb.png)
Optimal Transport between 2D empirical distributions
POT backend examples
![](../_images/sphx_glr_plot_dual_ot_pytorch_thumb.png)
Dual OT solvers for entropic and quadratic regularized OT with Pytorch
![](../_images/sphx_glr_plot_sliced_wass_grad_flow_pytorch_thumb.png)
Sliced Wasserstein barycenter and gradient flow with PyTorch
![](../_images/sphx_glr_plot_optim_gromov_pytorch_thumb.png)
Optimizing the Gromov-Wasserstein distance with PyTorch
Wasserstein barycenters
![](../_images/sphx_glr_plot_free_support_barycenter_thumb.png)
2D free support Wasserstein barycenters of distributions
![](../_images/sphx_glr_plot_free_support_sinkhorn_barycenter_thumb.png)
2D free support Sinkhorn barycenters of distributions
![](../_images/sphx_glr_plot_barycenter_lp_vs_entropic_thumb.png)
1D Wasserstein barycenter: exact LP vs entropic regularization
Domain adaptation examples
![](../_images/sphx_glr_plot_otda_laplacian_thumb.png)
OT with Laplacian regularization for domain adaptation
![](../_images/sphx_glr_plot_otda_mapping_colors_images_thumb.png)
OT for image color adaptation with mapping estimation
![](../_images/sphx_glr_plot_otda_d2_thumb.png)
OT for domain adaptation on empirical distributions
Gromov and Fused-Gromov-Wasserstein
![](../_images/sphx_glr_plot_gnn_TFGW_thumb.png)
Graph classification with Tempate Based Fused Gromov Wasserstein
![](../_images/sphx_glr_plot_entropic_semirelaxed_fgw_thumb.png)
Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example
![](../_images/sphx_glr_plot_gromov_wasserstein_dictionary_learning_thumb.png)
(Fused) Gromov-Wasserstein Linear Dictionary Learning
Other OT problems
![](../_images/sphx_glr_plot_COOT_thumb.png)
Row and column alignments with CO-Optimal Transport
![](../_images/sphx_glr_plot_SSNB_thumb.png)
Smooth and Strongly Convex Nearest Brenier Potentials
![](../_images/sphx_glr_plot_learning_weights_with_COOT_thumb.png)
Learning sample marginal distribution with CO-Optimal Transport
Sliced Wasserstein Distance
![](../_images/sphx_glr_plot_variance_ssw_thumb.png)
Spherical Sliced Wasserstein on distributions in S^2
Unbalanced and Partial OT
![](../_images/sphx_glr_plot_unbalanced_OT_thumb.png)
2D examples of exact and entropic unbalanced optimal transport
![](../_images/sphx_glr_plot_UOT_barycenter_1D_thumb.png)
1D Wasserstein barycenter demo for Unbalanced distributions
![](../_images/sphx_glr_plot_partial_wass_and_gromov_thumb.png)
Partial Wasserstein and Gromov-Wasserstein example
![](../_images/sphx_glr_plot_regpath_thumb.png)
Regularization path of l2-penalized unbalanced optimal transport