:orphan: Examples gallery ================ This is a gallery of all the POT example files. OT and regularized OT --------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_OT_1D.py` .. raw:: html
Optimal Transport for 1D distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_OT_1D_smooth_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_OT_1D_smooth.py` .. raw:: html
Smooth and sparse OT example
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_optim_OTreg_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_optim_OTreg.py` .. raw:: html
Regularized OT with generic solver
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_OT_2D_samples.py` .. raw:: html
Optimal Transport between 2D empirical distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_compute_emd.py` .. raw:: html
OT distances in 1D
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_compute_wasserstein_circle_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_compute_wasserstein_circle.py` .. raw:: html
OT distance on the Circle
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_OT_L1_vs_L2_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_OT_L1_vs_L2.py` .. raw:: html
Optimal Transport with different ground metrics
.. raw:: html
.. only:: html .. image:: /auto_examples/images/thumb/sphx_glr_plot_Intro_OT_thumb.png :alt: :ref:`sphx_glr_auto_examples_plot_Intro_OT.py` .. raw:: html
Introduction to Optimal Transport with Python
.. raw:: html
.. toctree:: :hidden: /auto_examples/plot_OT_1D /auto_examples/plot_OT_1D_smooth /auto_examples/plot_optim_OTreg /auto_examples/plot_OT_2D_samples /auto_examples/plot_compute_emd /auto_examples/plot_compute_wasserstein_circle /auto_examples/plot_OT_L1_vs_L2 /auto_examples/plot_Intro_OT POT backend examples -------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_unmix_optim_torch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_unmix_optim_torch.py` .. raw:: html
Wasserstein unmixing with PyTorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_ssw_unif_torch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_ssw_unif_torch.py` .. raw:: html
Spherical Sliced-Wasserstein Embedding on Sphere
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_dual_ot_pytorch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_dual_ot_pytorch.py` .. raw:: html
Dual OT solvers for entropic and quadratic regularized OT with Pytorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_wass1d_torch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_wass1d_torch.py` .. raw:: html
Wasserstein 1D (flow and barycenter) with PyTorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_wass2_gan_torch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_wass2_gan_torch.py` .. raw:: html
Wasserstein 2 Minibatch GAN with PyTorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_sliced_wass_grad_flow_pytorch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_sliced_wass_grad_flow_pytorch.py` .. raw:: html
Sliced Wasserstein barycenter and gradient flow with PyTorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_stoch_continuous_ot_pytorch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_stoch_continuous_ot_pytorch.py` .. raw:: html
Continuous OT plan estimation with Pytorch
.. raw:: html
.. only:: html .. image:: /auto_examples/backends/images/thumb/sphx_glr_plot_optim_gromov_pytorch_thumb.png :alt: :ref:`sphx_glr_auto_examples_backends_plot_optim_gromov_pytorch.py` .. raw:: html
Optimizing the Gromov-Wasserstein distance with PyTorch
.. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_unmix_optim_torch /auto_examples/backends/plot_ssw_unif_torch /auto_examples/backends/plot_dual_ot_pytorch /auto_examples/backends/plot_wass1d_torch /auto_examples/backends/plot_wass2_gan_torch /auto_examples/backends/plot_sliced_wass_grad_flow_pytorch /auto_examples/backends/plot_stoch_continuous_ot_pytorch /auto_examples/backends/plot_optim_gromov_pytorch Wasserstein barycenters ----------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_convolutional_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_convolutional_barycenter.py` .. raw:: html
Convolutional Wasserstein Barycenter example
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_free_support_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_free_support_barycenter.py` .. raw:: html
2D free support Wasserstein barycenters of distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_gaussian_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_gaussian_barycenter.py` .. raw:: html
Gaussian Bures-Wasserstein barycenters
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_barycenter_1D.py` .. raw:: html
1D Wasserstein barycenter demo
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_debiased_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_debiased_barycenter.py` .. raw:: html
Debiased Sinkhorn barycenter demo
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_generalized_free_support_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_generalized_free_support_barycenter.py` .. raw:: html
Generalized Wasserstein Barycenter Demo
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_free_support_sinkhorn_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_free_support_sinkhorn_barycenter.py` .. raw:: html
2D free support Sinkhorn barycenters of distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_barycenter_lp_vs_entropic_thumb.png :alt: :ref:`sphx_glr_auto_examples_barycenters_plot_barycenter_lp_vs_entropic.py` .. raw:: html
1D Wasserstein barycenter: exact LP vs entropic regularization
.. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_convolutional_barycenter /auto_examples/barycenters/plot_free_support_barycenter /auto_examples/barycenters/plot_gaussian_barycenter /auto_examples/barycenters/plot_barycenter_1D /auto_examples/barycenters/plot_debiased_barycenter /auto_examples/barycenters/plot_generalized_free_support_barycenter /auto_examples/barycenters/plot_free_support_sinkhorn_barycenter /auto_examples/barycenters/plot_barycenter_lp_vs_entropic Domain adaptation examples -------------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_laplacian_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_laplacian.py` .. raw:: html
OT with Laplacian regularization for domain adaptation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_color_images_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_color_images.py` .. raw:: html
OT for image color adaptation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_mapping_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_mapping.py` .. raw:: html
OT mapping estimation for domain adaptation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_mapping_colors_images_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_mapping_colors_images.py` .. raw:: html
OT for image color adaptation with mapping estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_semi_supervised_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_semi_supervised.py` .. raw:: html
OTDA unsupervised vs semi-supervised setting
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_linear_mapping_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_linear_mapping.py` .. raw:: html
Linear OT mapping estimation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_classes_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_classes.py` .. raw:: html
OT for domain adaptation
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_d2_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_d2.py` .. raw:: html
OT for domain adaptation on empirical distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_jcpot_thumb.png :alt: :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_jcpot.py` .. raw:: html
OT for multi-source target shift
.. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_laplacian /auto_examples/domain-adaptation/plot_otda_color_images /auto_examples/domain-adaptation/plot_otda_mapping /auto_examples/domain-adaptation/plot_otda_mapping_colors_images /auto_examples/domain-adaptation/plot_otda_semi_supervised /auto_examples/domain-adaptation/plot_otda_linear_mapping /auto_examples/domain-adaptation/plot_otda_classes /auto_examples/domain-adaptation/plot_otda_d2 /auto_examples/domain-adaptation/plot_otda_jcpot Gromov and Fused-Gromov-Wasserstein ----------------------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_fgw_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_fgw.py` .. raw:: html
Plot Fused-Gromov-Wasserstein
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_gromov.py` .. raw:: html
Gromov-Wasserstein example
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_barycenter_fgw_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_barycenter_fgw.py` .. raw:: html
Plot graphs barycenter using FGW
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_barycenter_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_gromov_barycenter.py` .. raw:: html
Gromov-Wasserstein Barycenter example
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gnn_TFGW_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_gnn_TFGW.py` .. raw:: html
Graph classification with Tempate Based Fused Gromov Wasserstein
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_semirelaxed_fgw_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_semirelaxed_fgw.py` .. raw:: html
Semi-relaxed (Fused) Gromov-Wasserstein example
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_entropic_semirelaxed_fgw_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_entropic_semirelaxed_fgw.py` .. raw:: html
Entropic-regularized semi-relaxed (Fused) Gromov-Wasserstein example
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_wasserstein_dictionary_learning_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_gromov_wasserstein_dictionary_learning.py` .. raw:: html
(Fused) Gromov-Wasserstein Linear Dictionary Learning
.. raw:: html
.. only:: html .. image:: /auto_examples/gromov/images/thumb/sphx_glr_plot_fgw_solvers_thumb.png :alt: :ref:`sphx_glr_auto_examples_gromov_plot_fgw_solvers.py` .. raw:: html
Comparison of Fused Gromov-Wasserstein solvers
.. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_fgw /auto_examples/gromov/plot_gromov /auto_examples/gromov/plot_barycenter_fgw /auto_examples/gromov/plot_gromov_barycenter /auto_examples/gromov/plot_gnn_TFGW /auto_examples/gromov/plot_semirelaxed_fgw /auto_examples/gromov/plot_entropic_semirelaxed_fgw /auto_examples/gromov/plot_gromov_wasserstein_dictionary_learning /auto_examples/gromov/plot_fgw_solvers Other OT problems ----------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_screenkhorn_1D_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_screenkhorn_1D.py` .. raw:: html
Screened optimal transport (Screenkhorn)
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_WeakOT_VS_OT_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_WeakOT_VS_OT.py` .. raw:: html
Weak Optimal Transport VS exact Optimal Transport
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_factored_coupling_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_factored_coupling.py` .. raw:: html
Optimal transport with factored couplings
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_COOT_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_COOT.py` .. raw:: html
Row and column alignments with CO-Optimal Transport
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_WDA_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_WDA.py` .. raw:: html
Wasserstein Discriminant Analysis
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_lowrank_sinkhorn_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_lowrank_sinkhorn.py` .. raw:: html
Low rank Sinkhorn
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_stochastic_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_stochastic.py` .. raw:: html
Stochastic examples
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_logo_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_logo.py` .. raw:: html
Logo of the POT toolbox
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_SSNB_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_SSNB.py` .. raw:: html
Smooth and Strongly Convex Nearest Brenier Potentials
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_learning_weights_with_COOT_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_learning_weights_with_COOT.py` .. raw:: html
Learning sample marginal distribution with CO-Optimal Transport
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_dmmot_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_dmmot.py` .. raw:: html
Computing d-dimensional Barycenters via d-MMOT
.. raw:: html
.. only:: html .. image:: /auto_examples/others/images/thumb/sphx_glr_plot_EWCA_thumb.png :alt: :ref:`sphx_glr_auto_examples_others_plot_EWCA.py` .. raw:: html
Entropic Wasserstein Component Analysis
.. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_screenkhorn_1D /auto_examples/others/plot_WeakOT_VS_OT /auto_examples/others/plot_factored_coupling /auto_examples/others/plot_COOT /auto_examples/others/plot_WDA /auto_examples/others/plot_lowrank_sinkhorn /auto_examples/others/plot_stochastic /auto_examples/others/plot_logo /auto_examples/others/plot_SSNB /auto_examples/others/plot_learning_weights_with_COOT /auto_examples/others/plot_dmmot /auto_examples/others/plot_EWCA Sliced Wasserstein Distance --------------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/sliced-wasserstein/images/thumb/sphx_glr_plot_variance_thumb.png :alt: :ref:`sphx_glr_auto_examples_sliced-wasserstein_plot_variance.py` .. raw:: html
Sliced Wasserstein Distance on 2D distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/sliced-wasserstein/images/thumb/sphx_glr_plot_variance_ssw_thumb.png :alt: :ref:`sphx_glr_auto_examples_sliced-wasserstein_plot_variance_ssw.py` .. raw:: html
Spherical Sliced Wasserstein on distributions in S^2
.. raw:: html
.. toctree:: :hidden: /auto_examples/sliced-wasserstein/plot_variance /auto_examples/sliced-wasserstein/plot_variance_ssw Unbalanced and Partial OT ------------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_UOT_1D_thumb.png :alt: :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_UOT_1D.py` .. raw:: html
1D Unbalanced optimal transport
.. raw:: html
.. only:: html .. image:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_unbalanced_OT_thumb.png :alt: :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_unbalanced_OT.py` .. raw:: html
2D examples of exact and entropic unbalanced optimal transport
.. raw:: html
.. only:: html .. image:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_UOT_barycenter_1D_thumb.png :alt: :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_UOT_barycenter_1D.py` .. raw:: html
1D Wasserstein barycenter demo for Unbalanced distributions
.. raw:: html
.. only:: html .. image:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_partial_wass_and_gromov_thumb.png :alt: :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_partial_wass_and_gromov.py` .. raw:: html
Partial Wasserstein and Gromov-Wasserstein example
.. raw:: html
.. only:: html .. image:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_regpath_thumb.png :alt: :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_regpath.py` .. raw:: html
Regularization path of l2-penalized unbalanced optimal transport
.. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_UOT_1D /auto_examples/unbalanced-partial/plot_unbalanced_OT /auto_examples/unbalanced-partial/plot_UOT_barycenter_1D /auto_examples/unbalanced-partial/plot_partial_wass_and_gromov /auto_examples/unbalanced-partial/plot_regpath .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_