6f4671eb1b466bf5c484dea3830d4e1bb61709b8,geomstats/invariant_metric.py,InvariantMetric,__init__,#InvariantMetric#Any#Any#Any#,24
Before Change
if inner_product_mat_at_identity.ndim == 3:
n_mats, _, _ = inner_product_mat_at_identity.shape
assert n_mats == 1
inner_product_mat_at_identity = gs.squeeze(
inner_product_mat_at_identity, axis=0)
matrix_shape = inner_product_mat_at_identity.shape
assert matrix_shape == (group.dimension,) * 2
assert left_or_right in ("left", "right")
After Change
inner_product_mat_at_identity = gs.to_ndarray(
inner_product_mat_at_identity, to_ndim=3)
mat_shape = inner_product_mat_at_identity.shape
assert mat_shape == (1,) + (group.dimension, ) * 2, mat_shape
assert left_or_right in ("left", "right")
eigenvalues = gs.linalg.eigvalsh(inner_product_mat_at_identity)
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 2
Instances
Project Name: geomstats/geomstats
Commit Name: 6f4671eb1b466bf5c484dea3830d4e1bb61709b8
Time: 2018-05-03
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: __init__
Project Name: facebookresearch/Horizon
Commit Name: 76a1bf8429edfc3e57ccab569b5a800d2841a8fe
Time: 2020-04-22
Author: kittipat@fb.com
File Name: reagent/gym/policies/samplers/discrete_sampler.py
Class Name: EpsilonGreedyActionSampler
Method Name: sample_action
Project Name: facebookresearch/Horizon
Commit Name: 76a1bf8429edfc3e57ccab569b5a800d2841a8fe
Time: 2020-04-22
Author: kittipat@fb.com
File Name: reagent/gym/policies/samplers/discrete_sampler.py
Class Name: SoftmaxActionSampler
Method Name: sample_action
Project Name: facebookresearch/SentEval
Commit Name: 9b1126c25af2105531505d8a3c864f3221c61fac
Time: 2018-05-06
Author: aconneau@fb.com
File Name: examples/models.py
Class Name: BLSTMEncoder
Method Name: forward
Project Name: facebookresearch/Horizon
Commit Name: f2e39855d7dda56b4b31185d4d0dd131f909369b
Time: 2020-05-02
Author: wangkaiwen998@gmail.com
File Name: reagent/gym/agents/agent.py
Class Name: Agent
Method Name: act
Project Name: bethgelab/foolbox
Commit Name: a5b289b24689321b991013f1353f2dc5af725bef
Time: 2019-05-17
Author: git@jonasrauber.de
File Name: foolbox/models/keras.py
Class Name: KerasModel
Method Name: __init__
Project Name: NifTK/NiftyNet
Commit Name: 269fe541986a4711eda1d707c86d97da0558564d
Time: 2018-05-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/contrib/dataset_sampler/image_window_dataset.py
Class Name: ImageWindowDataset
Method Name: layer_op
Project Name: SPFlow/SPFlow
Commit Name: 99f6a9b9b366e20ebc300fc5be904308c17c484f
Time: 2020-04-01
Author: steven.lang.mz@gmail.com
File Name: src/spn/experiments/RandomSPNs_layerwise/rat_spn.py
Class Name: RatSpn
Method Name: forward