e4a937ea1d0e7dce309a1a3f19d91032aca62781,geomstats/hyperbolic_space.py,HyperbolicMetric,exp_basis,#HyperbolicMetric#Any#Any#,170

Before Change


        sq_norm_tangent_vec = self.embedding_metric.squared_norm(
                tangent_vec)
        if sq_norm_tangent_vec < 0:
            print("<0: sq norm is: {}".format(sq_norm_tangent_vec))
        // TODO(nina): Fix, value error on this squared norm
        norm_tangent_vec = np.sqrt(sq_norm_tangent_vec)

        if np.isclose(sq_norm_tangent_vec, 0):

After Change



        riem_exp = coef_1 * base_point + coef_2 * tangent_vec

        hyperbolic_space = HyperbolicSpace(dimension=self.dimension)
        riem_exp = hyperbolic_space.regularize(riem_exp)
        return riem_exp

    def log_basis(self, point, base_point):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: geomstats/geomstats
Commit Name: e4a937ea1d0e7dce309a1a3f19d91032aca62781
Time: 2018-04-12
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp_basis


Project Name: geomstats/geomstats
Commit Name: f968d7bec6552b6986731a4dfbb0a524d01a29a2
Time: 2020-01-16
Author: thomas.l.p.gerald@gmail.com
File Name: examples/plot_kmean_poincare_disk.py
Class Name:
Method Name: main


Project Name: geomstats/geomstats
Commit Name: 0f0356a2e8265f24fd89bf95a809b9a8bb93dede
Time: 2018-04-12
Author: ninamio78@gmail.com
File Name: geomstats/hyperbolic_space.py
Class Name: HyperbolicMetric
Method Name: exp_basis