From 0fc6938dc15e8888b0a73fa4b6a421f39f0e0697 Mon Sep 17 00:00:00 2001 From: Rémi Flamary Date: Thu, 6 Jun 2019 12:09:34 +0200 Subject: update conf + readme --- docs/source/conf.py | 14 +++++++++++--- docs/source/readme.rst | 30 +++++++++++++++++++----------- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 433eca6..d29b829 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,7 +15,10 @@ import sys import os import re -import sphinx_gallery +try: + import sphinx_gallery +except ImportError: + print("warning sphinx-gallery not installed") # !!!! allow readthedoc compilation try: @@ -65,6 +68,8 @@ extensions = [ #'sphinx_gallery.gen_gallery', ] +napoleon_numpy_docstring = True + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -81,7 +86,7 @@ master_doc = 'index' # General information about the project. project = u'POT Python Optimal Transport' -copyright = u'2016-2018, Rémi Flamary, Nicolas Courty' +copyright = u'2016-2019, Rémi Flamary, Nicolas Courty' author = u'Rémi Flamary, Nicolas Courty' # The version info for the project you're documenting, acts as replacement for @@ -323,7 +328,10 @@ texinfo_documents = [ # Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'https://docs.python.org/': None} +intersphinx_mapping = {'python': ('https://docs.python.org/3', None), + 'numpy': ('http://docs.scipy.org/doc/numpy/', None), + 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), + 'matplotlib': ('http://matplotlib.sourceforge.net/', None)} sphinx_gallery_conf = { 'examples_dirs': ['../../examples','../../examples/da'], diff --git a/docs/source/readme.rst b/docs/source/readme.rst index e7c2bd1..d1063e8 100644 --- a/docs/source/readme.rst +++ b/docs/source/readme.rst @@ -12,9 +12,11 @@ It provides the following solvers: - OT Network Flow solver for the linear program/ Earth Movers Distance [1]. -- Entropic regularization OT solver with Sinkhorn Knopp Algorithm [2] - and stabilized version [9][10] and greedy SInkhorn [22] with optional - GPU implementation (requires cudamat). +- Entropic regularization OT solver with Sinkhorn Knopp Algorithm [2], + stabilized version [9][10] and greedy Sinkhorn [22] with optional GPU + implementation (requires cupy). +- Sinkhorn divergence [23] and entropic regularization OT from + empirical data. - Smooth optimal transport solvers (dual and semi-dual) for KL and squared L2 regularizations [17]. - Non regularized Wasserstein barycenters [16] with LP solver (only @@ -115,14 +117,9 @@ below pip install pymanopt autograd -- **ot.gpu** (GPU accelerated OT) depends on cudamat that have to be - installed with: - - :: - - git clone https://github.com/cudamat/cudamat.git - cd cudamat - python setup.py install --user # for user install (no root) +- **ot.gpu** (GPU accelerated OT) depends on cupy that have to be + installed following instructions on `this + page `__. obviously you need CUDA installed and a compatible GPU. @@ -226,6 +223,7 @@ The contributors to this library are: - `Kilian Fatras `__ - `Alain Rakotomamonjy `__ +- `Vayer Titouan `__ This toolbox benefit a lot from open source research and we would like to thank the following persons for providing some code (in various @@ -366,6 +364,16 @@ approximation algorithms for optimal transport via Sinkhorn iteration `__, Advances in Neural Information Processing Systems (NIPS) 31 +[23] Aude, G., Peyré, G., Cuturi, M., `Learning Generative Models with +Sinkhorn Divergences `__, Proceedings +of the Twenty-First International Conference on Artficial Intelligence +and Statistics, (AISTATS) 21, 2018 + +[24] Vayer, T., Chapel, L., Flamary, R., Tavenard, R. and Courty, N. +(2019). `Optimal Transport for structured data with application on +graphs `__ Proceedings +of the 36th International Conference on Machine Learning (ICML). + .. |PyPI version| image:: https://badge.fury.io/py/POT.svg :target: https://badge.fury.io/py/POT .. |Anaconda Cloud| image:: https://anaconda.org/conda-forge/pot/badges/version.svg -- cgit v1.2.3