36bf1cd036d852d10b189727d43fee6ee0b6c66c,geomstats/geometry/special_euclidean.py,SpecialEuclidean,random_uniform,#SpecialEuclidean#Any#Any#,613
Before Change
axis=1)
elif point_type == "matrix":
raise NotImplementedError()
random_transfo = self.regularize(random_transfo, point_type=point_type)
return random_transfo
After Change
axis=1)
elif point_type == "matrix":
random_rotation = self.rotations.random_uniform(
n_samples, point_type=point_type)
if n_samples == 1:
random_translation = gs.to_ndarray(
gs.transpose(random_translation), to_ndim=3)
else:
random_translation = gs.transpose(gs.to_ndarray(
random_translation, to_ndim=3))
random_point = gs.concatenate(
(random_rotation, random_translation), axis=2)
last_line = gs.zeros((n_samples, 1, self.n + 1))
random_point = gs.concatenate(
(random_point, last_line), axis=1)
random_point = gs.assignment(random_point, 1, (-1, -1), axis=0)
return random_point
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: geomstats/geomstats
Commit Name: 36bf1cd036d852d10b189727d43fee6ee0b6c66c
Time: 2020-04-02
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/geometry/special_euclidean.py
Class Name: SpecialEuclidean
Method Name: random_uniform
Project Name: kengz/SLM-Lab
Commit Name: 60d3325b8551cc6f7592e1266878818ad07d3b3a
Time: 2018-01-13
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: analyze_experiment
Project Name: geomstats/geomstats
Commit Name: 36bf1cd036d852d10b189727d43fee6ee0b6c66c
Time: 2020-04-02
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/geometry/special_euclidean.py
Class Name: SpecialEuclidean
Method Name: inverse