f0957f788477a92f913d0ca4891743cb82cbc7d7,geomstats/hyperbolic_space.py,HyperbolicSpace,riemannian_dist,#HyperbolicSpace#Any#Any#,157
Before Change
assert self.belongs(point_a)
assert self.belongs(point_b)
sq_norm_a = embedding_squared_norm(point_a)
sq_norm_b = embedding_squared_norm(point_b)
inner_prod = embedding_inner_product(point_a, point_b)
cosh_angle = - inner_prod / math.sqrt(sq_norm_a * sq_norm_b)
After Change
embedding of the hyperbolic space in the minkowski space.
sq_norm_a = self.embedding_metric.riemannian_squared_norm(point_a)
sq_norm_b = self.embedding_metric.riemannian_squared_norm(point_b)
inner_prod = self.embedding_metric.riemannian_inner_product(
point_a,
point_b)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: geomstats/geomstats
Commit Name: f0957f788477a92f913d0ca4891743cb82cbc7d7
Time: 2018-01-18
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicSpace
Method Name: riemannian_dist
Project Name: geomstats/geomstats
Commit Name: f0957f788477a92f913d0ca4891743cb82cbc7d7
Time: 2018-01-18
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicSpace
Method Name: riemannian_exp
Project Name: geomstats/geomstats
Commit Name: f0957f788477a92f913d0ca4891743cb82cbc7d7
Time: 2018-01-18
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicSpace
Method Name: projection_to_tangent_space
Project Name: geomstats/geomstats
Commit Name: b38011e4308070711f610731073b20b08fd9b137
Time: 2018-01-18
Author: ninamio78@gmail.com
File Name: tests/test_hyperbolic_space.py
Class Name: TestHyperbolicSpaceMethods
Method Name: test_riemannian_exp_and_dist_and_projection_to_tangent_space