9e1cd02d85d9534a2aec674fdf3445f7b7197914,pymc3/model.py,MultiObservedRV,__init__,#MultiObservedRV#Any#Any#Any#Any#,422

Before Change


        else:
            names = [name]

        data_arrays = [as_tensor(data, name) for data, name in zip(data_arrays,names)]
        self.data = [d for d, missing in data_arrays]
        self.missing_values = [missing for d, missing in data_arrays if missing is not None]

        self.logp_elemwiset = distribution.logp(*data_arrays)
        self.model = model

After Change



        self.data = { name : as_tensor(data, name) for name, data in data.items()}

        self.missing_values = [ data.missing_values for data in self.data.values() if data.missing_values is not None]
        self.logp_elemwiset = distribution.logp(**self.data)
        self.model = model
        self.distribution = distribution
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pymc-devs/pymc3
Commit Name: 9e1cd02d85d9534a2aec674fdf3445f7b7197914
Time: 2015-06-07
Author: jsalvatier@gmail.com
File Name: pymc3/model.py
Class Name: MultiObservedRV
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: bf9599809214cbc3082eb7f39c0ad3155822a2c5
Time: 2014-02-12
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split


Project Name: quantumlib/Cirq
Commit Name: 010580845043ef751687b0ab34f694939a2fa4f5
Time: 2020-09-17
Author: kevinjefferysung@gmail.com
File Name: cirq/study/sweepable.py
Class Name:
Method Name: to_sweeps


Project Name: allenai/allennlp
Commit Name: ae72f792ff9ecdd0e449281d049eb306219f76f2
Time: 2018-09-17
Author: gabriel.satanovsky@gmail.com
File Name: allennlp/predictors/open_information_extraction.py
Class Name: OpenIePredictor
Method Name: predict_json