692daff32acea57c32fe191b785ce2c85dab4bb6,Tars/distributions/distribution_models.py,DistributionModel,sample,#DistributionModel#Any#Any#Any#Any#Any#,41
Before Change
x_inputs = get_dict_values(x, self.cond_var)
params = self.forward(*x_inputs)
dist = self._set_dist(params)
output = {self.var[0]: self._get_sample(dist, reparam=reparam)}
if return_all:
After Change
x_inputs = get_dict_values(x, self.cond_var)
params = self.forward(*x_inputs)
self._set_dist(params)
output = {self.var[0]: self._get_sample(reparam=reparam)}
if return_all:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: masa-su/pixyz
Commit Name: 692daff32acea57c32fe191b785ce2c85dab4bb6
Time: 2018-06-20
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distribution_models.py
Class Name: DistributionModel
Method Name: sample
Project Name: masa-su/pixyz
Commit Name: 692daff32acea57c32fe191b785ce2c85dab4bb6
Time: 2018-06-20
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distribution_models.py
Class Name: NormalModel
Method Name: __init__
Project Name: masa-su/pixyz
Commit Name: 692daff32acea57c32fe191b785ce2c85dab4bb6
Time: 2018-06-20
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distribution_models.py
Class Name: DistributionModel
Method Name: log_likelihood
Project Name: masa-su/pixyz
Commit Name: 692daff32acea57c32fe191b785ce2c85dab4bb6
Time: 2018-06-20
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distribution_models.py
Class Name: BernoulliModel
Method Name: __init__