a892fba9c025397f6d3b9f2bb6a4aa8bedb69935,tests/test_general_linear_group_tensorflow.py,TestGeneralLinearGroupTensorFlow,test_compose,#TestGeneralLinearGroupTensorFlow#,52

Before Change


    def test_compose(self):
        // 1. Composition by identity, on the right
        // Expect the original transformation
        rot_vec = self.so3_group.random_uniform()
        mat = self.so3_group.matrix_from_rotation_vector(rot_vec)

        result = self.group.compose(mat, self.group.identity)
        expected = mat

After Change


    def test_compose(self):
        // 1. Composition by identity, on the right
        // Expect the original transformation
        rot_vec = tf.convert_to_tensor([0.2, -0.1, 0.1])
        mat = self.so3_group.matrix_from_rotation_vector(rot_vec)

        result = self.group.compose(mat, self.group.identity)
        expected = mat
        expected = helper.to_matrix(mat)

        with self.test_session():
            self.assertAllClose(gs.eval(result), gs.eval(expected))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: geomstats/geomstats
Commit Name: a892fba9c025397f6d3b9f2bb6a4aa8bedb69935
Time: 2018-09-28
Author: ninamio78@gmail.com
File Name: tests/test_general_linear_group_tensorflow.py
Class Name: TestGeneralLinearGroupTensorFlow
Method Name: test_compose


Project Name: geomstats/geomstats
Commit Name: a892fba9c025397f6d3b9f2bb6a4aa8bedb69935
Time: 2018-09-28
Author: ninamio78@gmail.com
File Name: tests/test_general_linear_group_tensorflow.py
Class Name: TestGeneralLinearGroupTensorFlow
Method Name: test_compose_and_inverse


Project Name: geomstats/geomstats
Commit Name: a892fba9c025397f6d3b9f2bb6a4aa8bedb69935
Time: 2018-09-28
Author: ninamio78@gmail.com
File Name: tests/test_general_linear_group_tensorflow.py
Class Name: TestGeneralLinearGroupTensorFlow
Method Name: test_belongs