Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docstrings for deprecated functions #207

Merged
merged 5 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ott/solvers/linear/sinkhorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,12 @@ def sinkhorn(
):
r"""Solve regularized OT problem using Sinkhorn iterations.

.. note::

This function has been deprecated and will be removed in ``0.3.2`` release.
Please use the :class:`~ott.solvers.linear.sinkhorn.Sinkhorn` solver
instead.

The Sinkhorn algorithm is a fixed point iteration that solves a regularized
optimal transport (reg-OT) problem between two measures.
The optimization variables are a pair of vectors (called potentials, or
Expand Down
7 changes: 7 additions & 0 deletions src/ott/solvers/quadratic/gromov_wasserstein.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,13 @@ def gromov_wasserstein(
) -> GWOutput:
"""Solve a Gromov Wasserstein problem.

.. note::

This function has been deprecated and will be removed in ``0.3.2`` release.
Please use the
:class:`~ott.solvers.quadratic.gromov_wasserstein.GromovWasserstein`
solver instead.

Wrapper that instantiates a quadratic problem (possibly with linear term
if the problem is fused) and calls a solver to output a solution.

Expand Down
5 changes: 5 additions & 0 deletions src/ott/tools/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def solve(
) -> Transport:
"""Generic interface to transport problem.

.. note:

This function has been deprecated and will be removed in ``0.3.2`` release.
Please use :mod:`ott.solvers` module directly.

The geometries can be passed as arrays, geometry.Geometry or directly as a
problem. The solver is passed via kwargs.

Expand Down