diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2017-09-15 12:41:02 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2017-09-15 12:41:02 +0200 |
commit | bad3d95523d005a4fbf64dd009c716b9dd560fe3 (patch) | |
tree | 250d88fc139b0fce2f05892a0810b8b1917805b8 /docs/source | |
parent | d27e14cb4a48e76ab132c53aca56155e9be50bda (diff) |
clean nico commit mess with its emal
Diffstat (limited to 'docs/source')
23 files changed, 35 insertions, 299 deletions
diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_001.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_001.png Binary files differindex ba50e23..2ea9ead 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_001.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_001.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_002.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_002.png Binary files differindex 19978ff..cb6f1a1 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_002.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_002.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_005.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_005.png Binary files differindex aed13b2..895ff65 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_005.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_005.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_006.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_006.png Binary files differindex 8ea40f1..a056401 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_006.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_006.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_009.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_009.png Binary files differindex 404e9d8..285d474 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_009.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_009.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_010.png b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_010.png Binary files differindex 56b79cf..30ef388 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_010.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_OT_2D_samples_010.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_WDA_001.png b/docs/source/auto_examples/images/sphx_glr_plot_WDA_001.png Binary files differindex f724332..3524e19 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_WDA_001.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_WDA_001.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_WDA_003.png b/docs/source/auto_examples/images/sphx_glr_plot_WDA_003.png Binary files differindex b231020..819b974 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_WDA_003.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_WDA_003.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_003.png b/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_003.png Binary files differindex eb4bd0d..2da6ee7 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_003.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_003.png diff --git a/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_004.png b/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_004.png Binary files differindex 7c06255..d74c34a 100644 --- a/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_004.png +++ b/docs/source/auto_examples/images/sphx_glr_plot_compute_emd_004.png diff --git a/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png b/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png Binary files differindex a3b7039..63ff40c 100644 --- a/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png +++ b/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png diff --git a/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png b/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png Binary files differindex dbb5cfd..22281f4 100644 --- a/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png +++ b/docs/source/auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png diff --git a/docs/source/auto_examples/images/thumb/sphx_glr_plot_WDA_thumb.png b/docs/source/auto_examples/images/thumb/sphx_glr_plot_WDA_thumb.png Binary files differindex f55490c..2316fcc 100644 --- a/docs/source/auto_examples/images/thumb/sphx_glr_plot_WDA_thumb.png +++ b/docs/source/auto_examples/images/thumb/sphx_glr_plot_WDA_thumb.png diff --git a/docs/source/auto_examples/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png b/docs/source/auto_examples/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png Binary files differindex d8cdccb..5c17671 100644 --- a/docs/source/auto_examples/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png +++ b/docs/source/auto_examples/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png diff --git a/docs/source/auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png b/docs/source/auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png Binary files differindex 898cd72..68cbdf7 100644 --- a/docs/source/auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png +++ b/docs/source/auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png diff --git a/docs/source/auto_examples/index.rst b/docs/source/auto_examples/index.rst index 5d7a53d..e69de29 100644 --- a/docs/source/auto_examples/index.rst +++ b/docs/source/auto_examples/index.rst @@ -1,270 +0,0 @@ -:orphan: - -POT Examples -============ - -This is a gallery of all the POT example files. - - - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of EMD and Sinkhorn transport plans and their visualiz..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_1D_thumb.png - - :ref:`sphx_glr_auto_examples_plot_OT_1D.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_OT_1D - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="Illustrates the use of the generic solver for regularized OT with user-designed regularization ..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_optim_OTreg_thumb.png - - :ref:`sphx_glr_auto_examples_plot_optim_OTreg.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_optim_OTreg - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="Illustration of 2D optimal transport between discributions that are weighted sum of diracs. The..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_2D_samples_thumb.png - - :ref:`sphx_glr_auto_examples_plot_OT_2D_samples.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_OT_2D_samples - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="Shows how to compute multiple EMD and Sinkhorn with two differnt ground metrics and plot their ..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_compute_emd_thumb.png - - :ref:`sphx_glr_auto_examples_plot_compute_emd.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_compute_emd - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example illustrate the use of WDA as proposed in [11]."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_WDA_thumb.png - - :ref:`sphx_glr_auto_examples_plot_WDA.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_WDA - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example presents a way of transferring colors between two image with Optimal Transport as ..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_otda_color_images_thumb.png - - :ref:`sphx_glr_auto_examples_plot_otda_color_images.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_otda_color_images - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the computation of regularized Wassersyein Barycenter as proposed in [..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_barycenter_1D_thumb.png - - :ref:`sphx_glr_auto_examples_plot_barycenter_1D.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_barycenter_1D - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="OT for domain adaptation with image color adaptation [6] with mapping estimation [8]."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_otda_mapping_colors_images_thumb.png - - :ref:`sphx_glr_auto_examples_plot_otda_mapping_colors_images.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_otda_mapping_colors_images - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example presents how to use MappingTransport to estimate at the same time both the couplin..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_otda_mapping_thumb.png - - :ref:`sphx_glr_auto_examples_plot_otda_mapping.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_otda_mapping - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example introduces a domain adaptation in a 2D setting and the 4 OTDA approaches currently..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_otda_classes_thumb.png - - :ref:`sphx_glr_auto_examples_plot_otda_classes.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_otda_classes - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="This example introduces a domain adaptation in a 2D setting. It explicits the problem of domain..."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_otda_d2_thumb.png - - :ref:`sphx_glr_auto_examples_plot_otda_d2.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_otda_d2 - -.. raw:: html - - <div class="sphx-glr-thumbcontainer" tooltip="2D OT on empirical distributio with different gound metric."> - -.. only:: html - - .. figure:: /auto_examples/images/thumb/sphx_glr_plot_OT_L1_vs_L2_thumb.png - - :ref:`sphx_glr_auto_examples_plot_OT_L1_vs_L2.py` - -.. raw:: html - - </div> - - -.. toctree:: - :hidden: - - /auto_examples/plot_OT_L1_vs_L2 -.. raw:: html - - <div style='clear:both'></div> - - - -.. container:: sphx-glr-footer - - - .. container:: sphx-glr-download - - :download:`Download all examples in Python source code: auto_examples_python.zip <//home/rflamary/PYTHON/POT/docs/source/auto_examples/auto_examples_python.zip>` - - - - .. container:: sphx-glr-download - - :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip <//home/rflamary/PYTHON/POT/docs/source/auto_examples/auto_examples_jupyter.zip>` - -.. rst-class:: sphx-glr-signature - - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_OT_1D.rst b/docs/source/auto_examples/plot_OT_1D.rst index b91916e..975a923 100644 --- a/docs/source/auto_examples/plot_OT_1D.rst +++ b/docs/source/auto_examples/plot_OT_1D.rst @@ -171,7 +171,7 @@ Solve Sinkhorn 110|1.527180e-10| -**Total running time of the script:** ( 0 minutes 0.748 seconds) +**Total running time of the script:** ( 0 minutes 1.198 seconds) @@ -190,4 +190,4 @@ Solve Sinkhorn .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_OT_2D_samples.rst b/docs/source/auto_examples/plot_OT_2D_samples.rst index 0ad9cf0..5565c54 100644 --- a/docs/source/auto_examples/plot_OT_2D_samples.rst +++ b/docs/source/auto_examples/plot_OT_2D_samples.rst @@ -191,7 +191,7 @@ Compute Sinkhorn -**Total running time of the script:** ( 0 minutes 1.743 seconds) +**Total running time of the script:** ( 0 minutes 3.380 seconds) @@ -210,4 +210,4 @@ Compute Sinkhorn .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_OT_L1_vs_L2.rst b/docs/source/auto_examples/plot_OT_L1_vs_L2.rst index f97b373..a569b50 100644 --- a/docs/source/auto_examples/plot_OT_L1_vs_L2.rst +++ b/docs/source/auto_examples/plot_OT_L1_vs_L2.rst @@ -290,7 +290,7 @@ Dataset 2 : Plot OT Matrices -**Total running time of the script:** ( 0 minutes 1.134 seconds) +**Total running time of the script:** ( 0 minutes 1.976 seconds) @@ -309,4 +309,4 @@ Dataset 2 : Plot OT Matrices .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_WDA.rst b/docs/source/auto_examples/plot_WDA.rst index 64ddb47..2d83123 100644 --- a/docs/source/auto_examples/plot_WDA.rst +++ b/docs/source/auto_examples/plot_WDA.rst @@ -150,21 +150,27 @@ Compute Wasserstein Discriminant Analysis Compiling cost function... Computing gradient of cost function... iter cost val grad. norm - 1 +5.4993226050368416e-01 5.18285173e-01 - 2 +3.4883000507542844e-01 1.96795818e-01 - 3 +2.9841234004693890e-01 2.33029475e-01 - 4 +2.3976476757548179e-01 1.38593951e-01 - 5 +2.3614468346177828e-01 1.19615394e-01 - 6 +2.2586536502789240e-01 4.82430685e-02 - 7 +2.2451030967794622e-01 2.56564039e-02 - 8 +2.2421446331083625e-01 1.47932578e-02 - 9 +2.2407441444450052e-01 1.12040327e-03 - 10 +2.2407365923337522e-01 3.78899763e-04 - 11 +2.2407356874011675e-01 1.79740810e-05 - 12 +2.2407356862959993e-01 1.25643005e-05 - 13 +2.2407356853043561e-01 1.40415001e-06 - 14 +2.2407356852925220e-01 3.41183585e-07 - Terminated - min grad norm reached after 14 iterations, 6.78 seconds. + 1 +9.0167295050534191e-01 2.28422652e-01 + 2 +4.8324990550878105e-01 4.89362707e-01 + 3 +3.4613154515357075e-01 2.84117562e-01 + 4 +2.5277108387195002e-01 1.24888750e-01 + 5 +2.4113858393736629e-01 8.07491482e-02 + 6 +2.3642108593032782e-01 1.67612140e-02 + 7 +2.3625721372202199e-01 7.68640008e-03 + 8 +2.3625461994913738e-01 7.42200784e-03 + 9 +2.3624493441436939e-01 6.43534105e-03 + 10 +2.3621901383686217e-01 2.17960585e-03 + 11 +2.3621854258326572e-01 2.03306749e-03 + 12 +2.3621696458678049e-01 1.37118721e-03 + 13 +2.3621569489873540e-01 2.76368907e-04 + 14 +2.3621565599232983e-01 1.41898134e-04 + 15 +2.3621564465487518e-01 5.96602069e-05 + 16 +2.3621564232556647e-01 1.08709521e-05 + 17 +2.3621564230277003e-01 9.17855656e-06 + 18 +2.3621564224857586e-01 1.73728345e-06 + 19 +2.3621564224748123e-01 1.17770019e-06 + 20 +2.3621564224658587e-01 2.16179383e-07 + Terminated - min grad norm reached after 20 iterations, 9.20 seconds. Plot 2D projections @@ -216,7 +222,7 @@ Plot 2D projections -**Total running time of the script:** ( 0 minutes 7.637 seconds) +**Total running time of the script:** ( 0 minutes 16.182 seconds) @@ -235,4 +241,4 @@ Plot 2D projections .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_barycenter_1D.rst b/docs/source/auto_examples/plot_barycenter_1D.rst index 413fae3..f17f2c2 100644 --- a/docs/source/auto_examples/plot_barycenter_1D.rst +++ b/docs/source/auto_examples/plot_barycenter_1D.rst @@ -230,7 +230,7 @@ Barycentric interpolation -**Total running time of the script:** ( 0 minutes 0.431 seconds) +**Total running time of the script:** ( 0 minutes 0.814 seconds) @@ -249,4 +249,4 @@ Barycentric interpolation .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/auto_examples/plot_compute_emd.rst b/docs/source/auto_examples/plot_compute_emd.rst index ce79e20..cdbc620 100644 --- a/docs/source/auto_examples/plot_compute_emd.rst +++ b/docs/source/auto_examples/plot_compute_emd.rst @@ -162,7 +162,7 @@ Compute Sinkhorn for the different losses -**Total running time of the script:** ( 0 minutes 0.441 seconds) +**Total running time of the script:** ( 0 minutes 0.697 seconds) @@ -181,4 +181,4 @@ Compute Sinkhorn for the different losses .. rst-class:: sphx-glr-signature - `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Generated by Sphinx-Gallery <http://sphinx-gallery.readthedocs.io>`_ diff --git a/docs/source/conf.py b/docs/source/conf.py index 4105d87..7bf392c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -33,7 +33,7 @@ class Mock(MagicMock): return MagicMock() MOCK_MODULES = ['ot.lp.emd_wrap','autograd','pymanopt','cudamat','autograd.numpy','pymanopt.manifolds','pymanopt.solvers'] # 'autograd.numpy','pymanopt.manifolds','pymanopt.solvers', -sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) +#sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) # !!!! # If extensions (or modules to document with autodoc) are in another directory, @@ -62,7 +62,7 @@ extensions = [ 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', - #'sphinx_gallery.gen_gallery', + 'sphinx_gallery.gen_gallery', ] # Add any paths that contain templates here, relative to this directory. |