bea3a486261d3f6238316224605b684db1e5bca7,Tars/models/vi.py,VI,__init__,#VI#Any#Any#Any#Any#Any#Any#,11
Before Change
// set input_var
self.input_var = copy(self.q.cond_var)
for distribution in self.other_distributions:
self.input_var += copy(distribution.cond_var)
self.input_var = list(set(self.input_var))
def train(self, train_x=None, **kwargs):
self.p.train()
After Change
loss_cls = (-elbo + other_losses).mean()
self.loss_cls = loss_cls
self.test_loss_cls = loss_cls
self.loss_text = str(loss_cls)
// set params and optim
q_params = list(self.q.parameters())
p_params = list(self.p.parameters())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vi.py
Class Name: VI
Method Name: __init__
Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vae.py
Class Name: VAE
Method Name: __init__
Project Name: home-assistant/home-assistant
Commit Name: 69ed6fe6e7abaa07be3be4d57530a3be8d1c88bf
Time: 2015-12-30
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup