3da4b071f1257d7d13e5f2100ed04cc30c37dc23,geomstats/hyperbolic_space.py,HyperbolicSpace,belongs,#HyperbolicSpace#Any#Any#,57
Before Change
return False
sq_norm = self.embedding_metric.squared_norm(point)
euclidean_sq_norm = gs.dot(point, point.transpose())
diff = gs.abs(sq_norm + 1)
return diff < tolerance * euclidean_sq_norm
After Change
sq_norm = self.embedding_metric.squared_norm(point)
euclidean_sq_norm = gs.einsum("ij,ij->i", point, point)
euclidean_sq_norm = gs.to_ndarray(euclidean_sq_norm, to_ndim=2, axis=1)
diff = gs.abs(sq_norm + 1)
return diff < tolerance * euclidean_sq_norm
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: geomstats/geomstats
Commit Name: 3da4b071f1257d7d13e5f2100ed04cc30c37dc23
Time: 2018-05-03
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicSpace
Method Name: belongs
Project Name: geomstats/geomstats
Commit Name: 6b5e7b61823c1aac54904686fb382718915d7e48
Time: 2018-04-27
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: inner_product_at_identity
Project Name: geomstats/geomstats
Commit Name: 2554ae03ead9136389b7ffc5bfcdd5a7ad1c4fde
Time: 2018-04-27
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: inner_product_at_identity