9ec3b8e2099639500735b3074f8a02c304ba1095,geomstats/learning/em_expectation_maximization.py,RiemannianEM,update_means,#RiemannianEM#Any#Any#Any#Any#Any#Any#,92
Before Change
if(g_index>0):
self.means[g_index] = barycenter(data, wik[:, g_index], lr_mu, tau_mu, max_iter=max_iter, normed=True).squeeze()
else:
self.means = barycenter(data.unsqueeze(1).expand(N, M, D), wik, lr_mu, tau_mu, max_iter=max_iter, normed=True).squeeze()
def update_variances(self, z, wik, g_index=-1):
After Change
if(g_index>0):
mean.fit(data.data.from_numpy(), weights=wik.data.numpy()[:,g_index])
self.means[g_index] = torch.from_numpy(mean.estimate_).squeeze()
else:
mean.fit(data_gs, weights = wik.data.numpy())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: geomstats/geomstats
Commit Name: 9ec3b8e2099639500735b3074f8a02c304ba1095
Time: 2020-04-06
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/em_expectation_maximization.py
Class Name: RiemannianEM
Method Name: update_means
Project Name: facebookresearch/Horizon
Commit Name: d9815f5ee75397f9f75da34e28e7292b98c181d5
Time: 2018-04-12
Author: edoardoc@fb.com
File Name: ml/rl/training/ddpg_trainer.py
Class Name: DDPGTrainer
Method Name: train
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