summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-07-26 12:15:40 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-07-26 12:15:40 +0200
commit00970175c0f8ba9a99b61a182b32e329f219d382 (patch)
treef8009c8947360a7f46affec6525edbceeb018796
parentfac003de3d3a159bb8fb6228786479cdede2df4e (diff)
add license and authors on all modules
-rw-r--r--ot/__init__.py4
-rw-r--r--ot/bregman.py5
-rw-r--r--ot/da.py6
-rw-r--r--ot/datasets.py4
-rw-r--r--ot/dr.py4
-rw-r--r--ot/gpu/__init__.py5
-rw-r--r--ot/gpu/bregman.py5
-rw-r--r--ot/gpu/da.py9
-rw-r--r--ot/lp/__init__.py4
-rw-r--r--ot/lp/emd_wrap.pyx9
-rw-r--r--ot/optim.py4
-rw-r--r--ot/plot.py3
-rw-r--r--ot/utils.py5
13 files changed, 64 insertions, 3 deletions
diff --git a/ot/__init__.py b/ot/__init__.py
index a79a5ce..c2161e4 100644
--- a/ot/__init__.py
+++ b/ot/__init__.py
@@ -4,6 +4,10 @@
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
# All submodules and packages
from . import lp
diff --git a/ot/bregman.py b/ot/bregman.py
index fe10880..71a5548 100644
--- a/ot/bregman.py
+++ b/ot/bregman.py
@@ -3,6 +3,11 @@
Bregman projections for regularized OT
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+# Nicolas Courty <ncourty@irisa.fr>
+#
+# License: MIT License
+
import numpy as np
diff --git a/ot/da.py b/ot/da.py
index 5039fbd..977d532 100644
--- a/ot/da.py
+++ b/ot/da.py
@@ -3,6 +3,12 @@
Domain adaptation with optimal transport
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+# Nicolas Courty <ncourty@irisa.fr>
+# Michael Perrot <michael.perrot@univ-st-etienne.fr>
+#
+# License: MIT License
+
import numpy as np
from .bregman import sinkhorn
from .lp import emd
diff --git a/ot/datasets.py b/ot/datasets.py
index 4371a23..e4fe118 100644
--- a/ot/datasets.py
+++ b/ot/datasets.py
@@ -2,6 +2,10 @@
Simple example datasets for OT
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
import numpy as np
import scipy as sp
diff --git a/ot/dr.py b/ot/dr.py
index 77cbae2..d30ab30 100644
--- a/ot/dr.py
+++ b/ot/dr.py
@@ -3,6 +3,10 @@
Dimension reduction with optimal transport
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
from scipy import linalg
import autograd.numpy as np
from pymanopt.manifolds import Stiefel
diff --git a/ot/gpu/__init__.py b/ot/gpu/__init__.py
index 40b11c0..c8f9433 100644
--- a/ot/gpu/__init__.py
+++ b/ot/gpu/__init__.py
@@ -4,4 +4,9 @@ from . import bregman
from . import da
from .bregman import sinkhorn
+# Author: Remi Flamary <remi.flamary@unice.fr>
+# Leo Gautheron <https://github.com/aje>
+#
+# License: MIT License
+
__all__ = ["bregman", "da", "sinkhorn"]
diff --git a/ot/gpu/bregman.py b/ot/gpu/bregman.py
index 2302f80..86bfec1 100644
--- a/ot/gpu/bregman.py
+++ b/ot/gpu/bregman.py
@@ -3,6 +3,11 @@
Bregman projections for regularized OT with GPU
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+# Leo Gautheron <https://github.com/aje>
+#
+# License: MIT License
+
import numpy as np
import cudamat
diff --git a/ot/gpu/da.py b/ot/gpu/da.py
index c66e755..7fb488d 100644
--- a/ot/gpu/da.py
+++ b/ot/gpu/da.py
@@ -3,6 +3,15 @@
Domain adaptation with optimal transport with GPU implementation
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+# Nicolas Courty <ncourty@irisa.fr>
+# Michael Perrot <michael.perrot@univ-st-etienne.fr>
+# Leo Gautheron <https://github.com/aje>
+#
+# License: MIT License
+
+
+
import numpy as np
from ..utils import unif
from ..da import OTDA
diff --git a/ot/lp/__init__.py b/ot/lp/__init__.py
index db3da78..6e0bdb8 100644
--- a/ot/lp/__init__.py
+++ b/ot/lp/__init__.py
@@ -3,6 +3,10 @@
Solvers for the original linear program OT problem
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
import numpy as np
# import compiled emd
from .emd_wrap import emd_c, emd2_c
diff --git a/ot/lp/emd_wrap.pyx b/ot/lp/emd_wrap.pyx
index 46794ab..46c96c1 100644
--- a/ot/lp/emd_wrap.pyx
+++ b/ot/lp/emd_wrap.pyx
@@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
"""
-Created on Thu Sep 11 08:42:08 2014
-
-@author: rflamary
+Cython linker with C solver
"""
+
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
import numpy as np
cimport numpy as np
diff --git a/ot/optim.py b/ot/optim.py
index adad95e..c59089c 100644
--- a/ot/optim.py
+++ b/ot/optim.py
@@ -3,6 +3,10 @@
Optimization algorithms for OT
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
import numpy as np
from scipy.optimize.linesearch import scalar_search_armijo
from .lp import emd
diff --git a/ot/plot.py b/ot/plot.py
index 61afc9f..784a372 100644
--- a/ot/plot.py
+++ b/ot/plot.py
@@ -2,6 +2,9 @@
Functions for plotting OT matrices
"""
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
import numpy as np
import matplotlib.pylab as pl
diff --git a/ot/utils.py b/ot/utils.py
index 1dee932..2b2f8b3 100644
--- a/ot/utils.py
+++ b/ot/utils.py
@@ -2,6 +2,11 @@
"""
Various function that can be usefull
"""
+
+# Author: Remi Flamary <remi.flamary@unice.fr>
+#
+# License: MIT License
+
import multiprocessing
from functools import reduce
import time