diff options
Diffstat (limited to 'docs/source/auto_examples/plot_otda_semi_supervised.rst')
-rw-r--r-- | docs/source/auto_examples/plot_otda_semi_supervised.rst | 66 |
1 files changed, 44 insertions, 22 deletions
diff --git a/docs/source/auto_examples/plot_otda_semi_supervised.rst b/docs/source/auto_examples/plot_otda_semi_supervised.rst index 2ed7819..4a355e7 100644 --- a/docs/source/auto_examples/plot_otda_semi_supervised.rst +++ b/docs/source/auto_examples/plot_otda_semi_supervised.rst @@ -1,6 +1,12 @@ +.. only:: html + + .. note:: + :class: sphx-glr-download-link-note + Click :ref:`here <sphx_glr_download_auto_examples_plot_otda_semi_supervised.py>` to download the full example code + .. rst-class:: sphx-glr-example-title -.. _sphx_glr_auto_examples_plot_otda_semi_supervised.py: + .. _sphx_glr_auto_examples_plot_otda_semi_supervised.py: ============================================ @@ -16,8 +22,7 @@ transported samples are represented in order to give a visual understanding of what the transport methods are doing. - -.. code-block:: python +.. code-block:: default # Authors: Remi Flamary <remi.flamary@unice.fr> @@ -35,12 +40,12 @@ of what the transport methods are doing. + Generate data ------------- - -.. code-block:: python +.. code-block:: default n_samples_source = 150 @@ -56,12 +61,12 @@ Generate data + Transport source samples onto target samples -------------------------------------------- - -.. code-block:: python +.. code-block:: default @@ -94,12 +99,12 @@ Transport source samples onto target samples + Fig 1 : plots source and target samples + matrix of pairwise distance --------------------------------------------------------------------- - -.. code-block:: python +.. code-block:: default pl.figure(1, figsize=(10, 10)) @@ -139,7 +144,8 @@ Fig 1 : plots source and target samples + matrix of pairwise distance .. image:: /auto_examples/images/sphx_glr_plot_otda_semi_supervised_001.png - :align: center + :class: sphx-glr-single-img + @@ -148,8 +154,7 @@ Fig 2 : plots optimal couplings for the different methods --------------------------------------------------------- - -.. code-block:: python +.. code-block:: default pl.figure(2, figsize=(8, 4)) @@ -172,8 +177,9 @@ Fig 2 : plots optimal couplings for the different methods -.. image:: /auto_examples/images/sphx_glr_plot_otda_semi_supervised_003.png - :align: center +.. image:: /auto_examples/images/sphx_glr_plot_otda_semi_supervised_002.png + :class: sphx-glr-single-img + @@ -182,8 +188,7 @@ Fig 3 : plot transported samples -------------------------------- - -.. code-block:: python +.. code-block:: default # display transported samples @@ -212,28 +217,45 @@ Fig 3 : plot transported samples -.. image:: /auto_examples/images/sphx_glr_plot_otda_semi_supervised_006.png - :align: center +.. image:: /auto_examples/images/sphx_glr_plot_otda_semi_supervised_003.png + :class: sphx-glr-single-img + + +.. rst-class:: sphx-glr-script-out + + Out: + .. code-block:: none + /home/rflamary/PYTHON/POT/examples/plot_otda_semi_supervised.py:148: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. + pl.show() -**Total running time of the script:** ( 0 minutes 0.256 seconds) +.. rst-class:: sphx-glr-timing + + **Total running time of the script:** ( 0 minutes 0.660 seconds) + + +.. _sphx_glr_download_auto_examples_plot_otda_semi_supervised.py: + + .. only :: html .. container:: sphx-glr-footer + :class: sphx-glr-footer-example + - .. container:: sphx-glr-download + .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_otda_semi_supervised.py <plot_otda_semi_supervised.py>` - .. container:: sphx-glr-download + .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_otda_semi_supervised.ipynb <plot_otda_semi_supervised.ipynb>` @@ -242,4 +264,4 @@ Fig 3 : plot transported samples .. rst-class:: sphx-glr-signature - `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_ + `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_ |