2e191e4dcb7b3de9fd6d2637f6cb9713e35fe082,pixyz/distributions/distributions.py,DistributionBase,sample,#DistributionBase#Any#Any#Any#Any#Any#,404

Before Change


               reparam=False):

        if len(x) == 0:  // unconditioned
            if len(self.input_var) != 0:
                raise ValueError("You should set inputs or parameters")

            if shape:
                sample_shape = shape
            else:
                if self.dim is None:

After Change


        // conditioned
        else:
            // remove redundant variables from x_dict
            _x_dict = get_dict_values(x_dict, self.input_var, return_dict=True)
            self._set_distribution(_x_dict)
            output_dict = self._get_sample(reparam=reparam)

        if return_all:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: masa-su/pixyz
Commit Name: 2e191e4dcb7b3de9fd6d2637f6cb9713e35fe082
Time: 2019-01-27
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistributionBase
Method Name: sample


Project Name: masa-su/pixyz
Commit Name: aab1e5b638029c3398d7fb557abbecee51abf53a
Time: 2018-10-23
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distributions.py
Class Name: RelaxedBernoulli
Method Name: log_likelihood


Project Name: masa-su/pixyz
Commit Name: 499a447ca672704910f31e04f6d88907e1b75ce6
Time: 2019-01-27
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/special_distributions.py
Class Name: Deterministic
Method Name: sample