:orphan: .. _sphx_glr_auto_examples: Examples gallery ================ This is a gallery of all the POT example files. OT and regularized OT --------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png :alt: Optimal Transport for 1D distributions :ref:`sphx_glr_auto_examples_plot_OT_1D.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_OT_1D .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_1D_smooth_thumb.png :alt: Smooth optimal transport example :ref:`sphx_glr_auto_examples_plot_OT_1D_smooth.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_OT_1D_smooth .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_optim_OTreg_thumb.png :alt: Regularized OT with generic solver :ref:`sphx_glr_auto_examples_plot_optim_OTreg.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_optim_OTreg .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png :alt: Optimal Transport between 2D empirical distributions :ref:`sphx_glr_auto_examples_plot_OT_2D_samples.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_OT_2D_samples .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png :alt: OT distances in 1D :ref:`sphx_glr_auto_examples_plot_compute_emd.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_compute_emd .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_L1_vs_L2_thumb.png :alt: Optimal Transport with different gournd metrics :ref:`sphx_glr_auto_examples_plot_OT_L1_vs_L2.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_OT_L1_vs_L2 .. raw:: html
.. only:: html .. figure:: /auto_examples/images/thumb/sphx_glr_plot_Intro_OT_thumb.png :alt: Introduction to Optimal Transport with Python :ref:`sphx_glr_auto_examples_plot_Intro_OT.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/plot_Intro_OT .. raw:: html
.. _sphx_glr_auto_examples_backends: POT backend examples -------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_unmix_optim_torch_thumb.png :alt: Wasserstein unmixing with PyTorch :ref:`sphx_glr_auto_examples_backends_plot_unmix_optim_torch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_unmix_optim_torch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_dual_ot_pytorch_thumb.png :alt: Dual OT solvers for entropic and quadratic regularized OT with Pytorch :ref:`sphx_glr_auto_examples_backends_plot_dual_ot_pytorch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_dual_ot_pytorch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_wass1d_torch_thumb.png :alt: Wasserstein 1D (flow and barycenter) with PyTorch :ref:`sphx_glr_auto_examples_backends_plot_wass1d_torch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_wass1d_torch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_wass2_gan_torch_thumb.png :alt: Wasserstein 2 Minibatch GAN with PyTorch :ref:`sphx_glr_auto_examples_backends_plot_wass2_gan_torch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_wass2_gan_torch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_sliced_wass_grad_flow_pytorch_thumb.png :alt: Sliced Wasserstein barycenter and gradient flow with PyTorch :ref:`sphx_glr_auto_examples_backends_plot_sliced_wass_grad_flow_pytorch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_sliced_wass_grad_flow_pytorch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_stoch_continuous_ot_pytorch_thumb.png :alt: Continuous OT plan estimation with Pytorch :ref:`sphx_glr_auto_examples_backends_plot_stoch_continuous_ot_pytorch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_stoch_continuous_ot_pytorch .. raw:: html
.. only:: html .. figure:: /auto_examples/backends/images/thumb/sphx_glr_plot_optim_gromov_pytorch_thumb.png :alt: Optimizing the Gromov-Wasserstein distance with PyTorch :ref:`sphx_glr_auto_examples_backends_plot_optim_gromov_pytorch.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/backends/plot_optim_gromov_pytorch .. raw:: html
.. _sphx_glr_auto_examples_barycenters: Wasserstein barycenters ----------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_free_support_barycenter_thumb.png :alt: 2D free support Wasserstein barycenters of distributions :ref:`sphx_glr_auto_examples_barycenters_plot_free_support_barycenter.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_free_support_barycenter .. raw:: html
.. only:: html .. figure:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_convolutional_barycenter_thumb.png :alt: Convolutional Wasserstein Barycenter example :ref:`sphx_glr_auto_examples_barycenters_plot_convolutional_barycenter.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_convolutional_barycenter .. raw:: html
.. only:: html .. figure:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png :alt: 1D Wasserstein barycenter demo :ref:`sphx_glr_auto_examples_barycenters_plot_barycenter_1D.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_barycenter_1D .. raw:: html
.. only:: html .. figure:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_debiased_barycenter_thumb.png :alt: Debiased Sinkhorn barycenter demo :ref:`sphx_glr_auto_examples_barycenters_plot_debiased_barycenter.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_debiased_barycenter .. raw:: html
.. only:: html .. figure:: /auto_examples/barycenters/images/thumb/sphx_glr_plot_barycenter_lp_vs_entropic_thumb.png :alt: 1D Wasserstein barycenter: exact LP vs entropic regularization :ref:`sphx_glr_auto_examples_barycenters_plot_barycenter_lp_vs_entropic.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/barycenters/plot_barycenter_lp_vs_entropic .. raw:: html
.. _sphx_glr_auto_examples_domain-adaptation: Domain adaptation examples -------------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_linear_mapping_thumb.png :alt: Linear OT mapping estimation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_linear_mapping.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_linear_mapping .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_laplacian_thumb.png :alt: OT with Laplacian regularization for domain adaptation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_laplacian.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_laplacian .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_color_images_thumb.png :alt: OT for image color adaptation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_color_images.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_color_images .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_mapping_thumb.png :alt: OT mapping estimation for domain adaptation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_mapping.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_mapping .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_mapping_colors_images_thumb.png :alt: OT for image color adaptation with mapping estimation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_mapping_colors_images.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_mapping_colors_images .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_semi_supervised_thumb.png :alt: OTDA unsupervised vs semi-supervised setting :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_semi_supervised.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_semi_supervised .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_classes_thumb.png :alt: OT for domain adaptation :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_classes.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_classes .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_d2_thumb.png :alt: OT for domain adaptation on empirical distributions :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_d2.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_d2 .. raw:: html
.. only:: html .. figure:: /auto_examples/domain-adaptation/images/thumb/sphx_glr_plot_otda_jcpot_thumb.png :alt: OT for multi-source target shift :ref:`sphx_glr_auto_examples_domain-adaptation_plot_otda_jcpot.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/domain-adaptation/plot_otda_jcpot .. raw:: html
.. _sphx_glr_auto_examples_gromov: Gromov and Fused-Gromov-Wasserstein ----------------------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_thumb.png :alt: Gromov-Wasserstein example :ref:`sphx_glr_auto_examples_gromov_plot_gromov.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_gromov .. raw:: html
.. only:: html .. figure:: /auto_examples/gromov/images/thumb/sphx_glr_plot_fgw_thumb.png :alt: Plot Fused-gromov-Wasserstein :ref:`sphx_glr_auto_examples_gromov_plot_fgw.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_fgw .. raw:: html
.. only:: html .. figure:: /auto_examples/gromov/images/thumb/sphx_glr_plot_barycenter_fgw_thumb.png :alt: Plot graphs barycenter using FGW :ref:`sphx_glr_auto_examples_gromov_plot_barycenter_fgw.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_barycenter_fgw .. raw:: html
.. only:: html .. figure:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_barycenter_thumb.png :alt: Gromov-Wasserstein Barycenter example :ref:`sphx_glr_auto_examples_gromov_plot_gromov_barycenter.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_gromov_barycenter .. raw:: html
.. only:: html .. figure:: /auto_examples/gromov/images/thumb/sphx_glr_plot_gromov_wasserstein_dictionary_learning_thumb.png :alt: (Fused) Gromov-Wasserstein Linear Dictionary Learning :ref:`sphx_glr_auto_examples_gromov_plot_gromov_wasserstein_dictionary_learning.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/gromov/plot_gromov_wasserstein_dictionary_learning .. raw:: html
.. _sphx_glr_auto_examples_others: Other OT problems ----------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_screenkhorn_1D_thumb.png :alt: Screened optimal transport (Screenkhorn) :ref:`sphx_glr_auto_examples_others_plot_screenkhorn_1D.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_screenkhorn_1D .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_WeakOT_VS_OT_thumb.png :alt: Weak Optimal Transport VS exact Optimal Transport :ref:`sphx_glr_auto_examples_others_plot_WeakOT_VS_OT.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_WeakOT_VS_OT .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_factored_coupling_thumb.png :alt: Optimal transport with factored couplings :ref:`sphx_glr_auto_examples_others_plot_factored_coupling.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_factored_coupling .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_WDA_thumb.png :alt: Wasserstein Discriminant Analysis :ref:`sphx_glr_auto_examples_others_plot_WDA.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_WDA .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_stochastic_thumb.png :alt: Stochastic examples :ref:`sphx_glr_auto_examples_others_plot_stochastic.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_stochastic .. raw:: html
.. only:: html .. figure:: /auto_examples/others/images/thumb/sphx_glr_plot_logo_thumb.png :alt: Logo of the POT toolbox :ref:`sphx_glr_auto_examples_others_plot_logo.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/others/plot_logo .. raw:: html
.. _sphx_glr_auto_examples_sliced-wasserstein: Sliced Wasserstein Distance --------------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/sliced-wasserstein/images/thumb/sphx_glr_plot_variance_thumb.png :alt: Sliced Wasserstein Distance on 2D distributions :ref:`sphx_glr_auto_examples_sliced-wasserstein_plot_variance.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/sliced-wasserstein/plot_variance .. raw:: html
.. _sphx_glr_auto_examples_unbalanced-partial: Unbalanced and Partial OT ------------------------- .. raw:: html
.. only:: html .. figure:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_UOT_1D_thumb.png :alt: 1D Unbalanced optimal transport :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_UOT_1D.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_UOT_1D .. raw:: html
.. only:: html .. figure:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_unbalanced_OT_thumb.png :alt: 2D examples of exact and entropic unbalanced optimal transport :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_unbalanced_OT.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_unbalanced_OT .. raw:: html
.. only:: html .. figure:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_UOT_barycenter_1D_thumb.png :alt: 1D Wasserstein barycenter demo for Unbalanced distributions :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_UOT_barycenter_1D.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_UOT_barycenter_1D .. raw:: html
.. only:: html .. figure:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_partial_wass_and_gromov_thumb.png :alt: Partial Wasserstein and Gromov-Wasserstein example :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_partial_wass_and_gromov.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_partial_wass_and_gromov .. raw:: html
.. only:: html .. figure:: /auto_examples/unbalanced-partial/images/thumb/sphx_glr_plot_regpath_thumb.png :alt: Regularization path of l2-penalized unbalanced optimal transport :ref:`sphx_glr_auto_examples_unbalanced-partial_plot_regpath.py` .. raw:: html
.. toctree:: :hidden: /auto_examples/unbalanced-partial/plot_regpath .. raw:: html
.. only :: html .. container:: sphx-glr-footer :class: 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 `_