Skip to content

Commit

Permalink
add reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Feb 17, 2019
1 parent 48b23e1 commit 953424b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion geoopt/manifolds/poincare/math.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Functions for math on Poincare ball model. Most of this is taken from
a well written paper by Octavian-Eugen Ganea (2018) [1]_
.. [1] Hyperbolic Neural Networks, NIPS2018
https://arxiv.org/abs/1805.09112
"""

import functools
import torch
import torch.jit
Expand Down Expand Up @@ -1101,8 +1110,13 @@ def _parallel_transport0(y, v, c): # pragma: no cover


def egrad2rgrad(x, grad, *, c=1.0):
"""
r"""
Translate Euclidean gradient to Riemannian gradient on tangent space of :math:`x`
.. math::
\nabla_x = \nabla^E_x / (\lambda_x^c)^2
Parameters
----------
x : tensor
Expand Down

0 comments on commit 953424b

Please sign in to comment.