cdc013766a961e645e6e0e5284d18f9f2153b933,geomstats/hyperbolic_space.py,HyperbolicMetric,exp,#HyperbolicMetric#Any#Any#,179
Before Change
if not gs.allclose(diff, 0, atol=TOLERANCE):
tangent_vec = projected_tangent_vec
logging.warning(
"The input vector is not tangent to the hyperbolic space."
" We project it on the tangent space at base_point={}.".format(
base_point))
sq_norm_tangent_vec = self.embedding_metric.squared_norm(
tangent_vec)
After Change
coef_1 = gs.squeeze(coef_1, axis=-1)
coef_2 = gs.squeeze(coef_2, axis=-1)
exp = (gs.einsum("...,...j->...j", coef_1, base_point)
+ gs.einsum("...,...j->...j", coef_2, tangent_vec))
hyperbolic_space = HyperbolicSpace(dimension=self.dimension)
exp = hyperbolic_space.regularize(exp)
return exp
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: cdc013766a961e645e6e0e5284d18f9f2153b933
Time: 2018-05-09
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp
Project Name: Bihaqo/t3f
Commit Name: a0b95bb42a9e0ebb7607c2d0fb91f203f1d92767
Time: 2017-03-17
Author: novikov@bayesgroup.ru
File Name: t3f/ops.py
Class Name:
Method Name: full
Project Name: geomstats/geomstats
Commit Name: e9e6b183d61ed205f043cdc6c6565f1393ed75a3
Time: 2018-05-09
Author: ninamio78@gmail.com
File Name: geomstats/hypersphere.py
Class Name: HypersphereMetric
Method Name: exp