d0273f567ef61481fb601398e98916dbc6852099,Tars/distributions/distributions.py,Distribution,__init__,#Distribution#Any#Any#Any#,14
Before Change
// Set the distribution if all parameters are constant and
// set at initialization.
if len(self.constant_params) == len(self.params_keys):
params = self.get_params()
self.dist = self.DistributionTorch(**params)
def _get_sample(self, reparam=True,
sample_shape=torch.Size()):
After Change
",".join(var)
)
else:
self.prob_text = "p({}|{})".format(
",".join(var),
",".join(cond_var)
)
self.prob_factorized_text = self.prob_text
// whether I"m a distribution with constant parameters
self.dist = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: masa-su/pixyz
Commit Name: d0273f567ef61481fb601398e98916dbc6852099
Time: 2018-07-18
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/distributions.py
Class Name: Distribution
Method Name: __init__
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 2f3cffca59e6d6efd14444f6fc98713cd5dfa6a7
Time: 2019-05-03
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/core/base.py
Class Name: BaseStreamEstimator
Method Name: reset
Project Name: markovmodel/PyEMMA
Commit Name: 4a8d4b647b79b5d0cea572d5951395bf98ba97c8
Time: 2017-11-28
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: __getstate__