30d0e90bfba6436e81dbbb3e6125acdc2740395d,tests/test_minkowski_space.py,TestMinkowskiSpaceMethods,test_belongs,#TestMinkowskiSpaceMethods#,34

Before Change


        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., 3.])
        result = self.space.belongs(point)
        expected = gs.array([[True]])

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

Frequency: 4

Non-data size: 5

Instances


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


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_random_uniform_and_belongs


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: 30d0e90bfba6436e81dbbb3e6125acdc2740395d
Time: 2018-12-12
Author: ninamio78@gmail.com
File Name: tests/test_minkowski_space.py
Class Name: TestMinkowskiSpaceMethods
Method Name: test_random_uniform_and_belongs