104bf4c75d92a7f9bf2194387f1d7b5013461f1a,tests/test_minkowski_space.py,TestMinkowskiSpaceMethods,test_belongs,#TestMinkowskiSpaceMethods#,34

Before Change



    @geomstats.tests.np_only
    def test_belongs(self):
        point = self.space.random_uniform()
        result = self.space.belongs(point)
        expected = gs.array([[True]])

        with self.session():
            self.assertAllClose(result, expected)

    def test_random_uniform(self):
        point = self.space.random_uniform()
        with self.session():
            self.assertAllClose(gs.eval(point).shape, (1, self.dimension))

After Change


                          lambda: self.metric.dist(point_a, point_b))

    def test_belongs(self):
        point = gs.array([-1., 5.])
        result = self.space.belongs(point)
        expected = gs.array([[True]])

        self.assertAllClose(result, expected)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: geomstats/geomstats
Commit Name: 104bf4c75d92a7f9bf2194387f1d7b5013461f1a
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_minkowski_space.py
Class Name: TestMinkowskiSpaceMethods
Method Name: test_belongs


Project Name: geomstats/geomstats
Commit Name: 1441eb9cc5eb424b5111f43890044ad5f46be2e3
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_minkowski_space.py
Class Name: TestMinkowskiSpaceMethods
Method Name: test_squared_norm


Project Name: geomstats/geomstats
Commit Name: 30d0e90bfba6436e81dbbb3e6125acdc2740395d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_minkowski_space.py
Class Name: TestMinkowskiSpaceMethods
Method Name: test_belongs