bea3a486261d3f6238316224605b684db1e5bca7,Tars/models/ml.py,ML,test,#ML#Any#,34
Before Change
self.p.eval()
with torch.no_grad():
log_like = self.p.log_likelihood(test_x)
loss = -torch.mean(log_like)
return log_like, loss
After Change
self.p.eval()
self.other_distributions.eval()
return super().test(test_x, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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/ml.py
Class Name: ML
Method Name: test
Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/ml.py
Class Name: ML
Method Name: train
Project Name: SheffieldML/GPy
Commit Name: 4ce2eb2ac6f193a0f00e616b810537b1ee909b07
Time: 2014-03-10
Author: ibinbei@gmail.com
File Name: GPy/models/mrd.py
Class Name: MRD
Method Name: log_likelihood