2e296adb05f62e4821c36b6f42b1470bdb10eaa6,geomstats/special_euclidean_group.py,SpecialEuclideanGroup,compose,#SpecialEuclideanGroup#Any#Any#,64

Before Change


        composition_rot_mat = np.matmul(rot_mat_1, rot_mat_2)
        composition_rot_vec = rotations.rotation_vector_from_matrix(
                                                          composition_rot_mat)
        composition_translation = (np.dot(translation_2,
                                          np.transpose(rot_mat_1,
                                                       axes=(0, 2, 1)))
                                   + translation_1)
        composition_translation = np.squeeze(composition_translation, axis=1)

        composition[:, :dim_rotations] = composition_rot_vec
        composition[:, dim_rotations:] = composition_translation

After Change


        composition_rot_mat = np.matmul(rot_mat_1, rot_mat_2)
        composition_rot_vec = rotations.rotation_vector_from_matrix(
                                                          composition_rot_mat)
        composition_translation = np.zeros((n_compositions, self.n))
        for i in range(n_compositions):
            translation_1_i = (translation_1[0] if n_points_1 == 1
                               else translation_1[i])
            rot_mat_1_i = (rot_mat_1[0] if n_points_1 == 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: geomstats/geomstats
Commit Name: 2e296adb05f62e4821c36b6f42b1470bdb10eaa6
Time: 2018-02-05
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: compose


Project Name: mil-tokyo/webdnn
Commit Name: 24bf232753b4b34b6d4164d5a647dd17d16348b2
Time: 2017-05-23
Author: hidaka@mi.t.u-tokyo.ac.jp
File Name: example/convert_resnet/convert.py
Class Name:
Method Name: main


Project Name: deepchem/deepchem
Commit Name: c96af58e6ab2f85626e51a331e8479da49329f0e
Time: 2017-01-18
Author: joegomes@stanford.edu
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowClassifier
Method Name: predict_proba_on_batch