Debian Codegraph @

ot/__init__.py

raw symbols SCIP
1 """
2 .. warning::
3 The list of automatically imported sub-modules is as follows:
4 :py:mod:`ot.lp`, :py:mod:`ot.bregman`, :py:mod:`ot.optim`
5 :py:mod:`ot.utils`, :py:mod:`ot.datasets`,
6 :py:mod:`ot.gromov`, :py:mod:`ot.smooth`
7 :py:mod:`ot.stochastic`, :py:mod:`ot.partial`, :py:mod:`ot.regpath`
8 , :py:mod:`ot.unbalanced`, :py:mod:`ot.mapping` .
9 The following sub-modules are not imported due to additional dependencies:
10 - :any:`ot.dr` : depends on :code:`pymanopt` and :code:`autograd`.
11 - :any:`ot.plot` : depends on :code:`matplotlib`
12 """
13
14 # Author: Remi Flamary <[email protected]>
15 # Nicolas Courty <[email protected]>
16 #
17 # License: MIT License
18
19 # All submodules and packages
20 from . import lp
21 from . import bregman
22 from . import optim
23 from . import utils
24 from . import datasets
25 from . import da
26 from . import gromov
27 from . import smooth
28 from . import stochastic
29 from . import unbalanced
30 from . import partial
31 from . import backend
32 from . import regpath
33 from . import weak
34 from . import factored
35 from . import solvers
36 from . import gaussian
37 from . import lowrank
38 from . import gmm
39
40
41 # OT functions
42 from .lp import (
43 emd,
44 emd2,
45 emd_1d,
46 emd2_1d,
47 wasserstein_1d,
48 binary_search_circle,
49 wasserstein_circle,
50 semidiscrete_wasserstein2_unif_circle,
51 )
52 from .bregman import sinkhorn, sinkhorn2, barycenter
53 from .unbalanced import sinkhorn_unbalanced, barycenter_unbalanced, sinkhorn_unbalanced2
54 from .da import sinkhorn_lpl1_mm
55 from .sliced import (
56 sliced_wasserstein_distance,
57 max_sliced_wasserstein_distance,
58 sliced_wasserstein_sphere,
59 sliced_wasserstein_sphere_unif,
60 )
61 from .gromov import (
62 gromov_wasserstein,
63 gromov_wasserstein2,
64 gromov_barycenters,
65 fused_gromov_wasserstein,
66 fused_gromov_wasserstein2,
67 lowrank_gromov_wasserstein_samples,
68 )
69 from .weak import weak_optimal_transport
70 from .factored import factored_optimal_transport
71 from .solvers import solve, solve_gromov, solve_sample
72 from .lowrank import lowrank_sinkhorn
73
74 # utils functions
75 from .utils import dist, unif, tic, toc, toq
76
77 __version__ = "0.9.5"
78
79 __all__ = [
80 "emd",
81 "emd2",
82 "emd_1d",
83 "sinkhorn",
84 "sinkhorn2",
85 "utils",
86 "datasets",
87 "bregman",
88 "lp",
89 "tic",
90 "toc",
91 "toq",
92 "gromov",
93 "emd2_1d",
94 "wasserstein_1d",
95 "backend",
96 "gaussian",
97 "dist",
98 "unif",
99 "barycenter",
100 "sinkhorn_lpl1_mm",
101 "da",
102 "optim",
103 "sinkhorn_unbalanced",
104 "barycenter_unbalanced",
105 "sinkhorn_unbalanced2",
106 "sliced_wasserstein_distance",
107 "sliced_wasserstein_sphere",
108 "gromov_wasserstein",
109 "gromov_wasserstein2",
110 "gromov_barycenters",
111 "fused_gromov_wasserstein",
112 "fused_gromov_wasserstein2",
113 "max_sliced_wasserstein_distance",
114 "weak_optimal_transport",
115 "factored_optimal_transport",
116 "solve",
117 "solve_gromov",
118 "solve_sample",
119 "smooth",
120 "stochastic",
121 "unbalanced",
122 "partial",
123 "regpath",
124 "solvers",
125 "weak",
126 "factored",
127 "lowrank",
128 "gmm",
129 "binary_search_circle",
130 "wasserstein_circle",
131 "semidiscrete_wasserstein2_unif_circle",
132 "sliced_wasserstein_sphere_unif",
133 "lowrank_sinkhorn",
134 "lowrank_gromov_wasserstein_samples",
135 ]