Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nvesseron committed Aug 4, 2024
1 parent 29d2e0b commit f6cd646
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/tutorials/notebooks/Unbalanced_OT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
"Instead of $\\rho_a$ and $\\rho_b$, `OTT`'s solver uses parameters `tau_a`$=\\rho_a /(\\varepsilon+ \\rho_a)$ and `tau_b`$=\\rho_b /(\\varepsilon+ \\rho_b)$. Setting either of these parameters to 1 corresponds to setting the corresponding $\\rho_a, \\rho_b$ to $\\infty$ and solving the corresponding balanced {class}`~ott.problems.linear.linear_problem.LinearProblem`. "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "06f20970",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"\n",
"if \"google.colab\" in sys.modules:\n",
" !pip install -q git+https://github.com/ott-jax/ott@main"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -41,11 +54,11 @@
"\n",
"import matplotlib.pyplot as plt\n",
"\n",
"from ott.geometry import costs, pointcloud\n",
"from ott.geometry import pointcloud\n",
"from ott.problems.linear import linear_problem\n",
"from ott.solvers.linear import sinkhorn\n",
"from ott.tools import plot\n",
"from ott.tools.gaussian_mixture import gaussian_mixture, probabilities"
"from ott.tools.gaussian_mixture import gaussian_mixture"
]
},
{
Expand Down

0 comments on commit f6cd646

Please sign in to comment.