4265551c99be9b7dd1d549ecdb13d25bbf98bbf7,geomstats/learning/em_expectation_maximization.py,,gaussianPDF,#Any#Any#Any#Any#Any#Any#,517
Before Change
// print("sigma",num)
// print("den ", den)
// print("pdf max ", (num/den.unsqueeze(0).expand(N, M)).max())
return num/den.unsqueeze(0).expand(N, M)
def distance(x, y):
return PoincareDistance2.apply(x, y)
After Change
// print("den ", den)
// print("pdf max ", (num/den.unsqueeze(0).expand(N, M)).max())
den_gs = gs.expand_dims(den,0)
den_gs = gs.repeat(den_gs, N, axis = 0)
result = num/den_gs
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: geomstats/geomstats
Commit Name: 4265551c99be9b7dd1d549ecdb13d25bbf98bbf7
Time: 2020-04-07
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/em_expectation_maximization.py
Class Name:
Method Name: gaussianPDF
Project Name: geomstats/geomstats
Commit Name: d5398270501cd5d6e9880db5e15ebf407ddec5ee
Time: 2020-04-03
Author: hadizaatiti@gmail.com
File Name: examples/plot_expectation_maximisation_manifolds.py
Class Name:
Method Name: weighted_gmm_pdf
Project Name: geomstats/geomstats
Commit Name: a1dd11c68e5911f069a747c917e2a4bfdd5ae4f4
Time: 2020-04-08
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/em_expectation_maximization.py
Class Name: ZetaPhiStorage
Method Name: phi