0f45720766709b055bfd4ef7d19102f6653a6f43,pymc3/variational/opvi.py,Approximation,__init__,#Approximation#Any#Any#Any#,376

Before Change



        known = {get_transformed(k): v for k, v in local_rv.items()}
        self.known = known
        self.local_vars = [v for v in model.free_RVs if v in known]
        self.global_vars = [v for v in model.free_RVs if v not in known]
        self.order = ArrayOrdering(self.local_vars + self.global_vars)
        self.flat_view = model.flatten(
            vars=self.local_vars + self.global_vars

After Change


            vars=self.local_vars + self.global_vars
        )
        self.grad_scale_op = GradScale(cost_part_grad_scale)
        self._setup()
        self.shared_params = self.create_shared_params()

    def _setup(self):
        pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pymc-devs/pymc3
Commit Name: 0f45720766709b055bfd4ef7d19102f6653a6f43
Time: 2017-03-17
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/opvi.py
Class Name: Approximation
Method Name: __init__


Project Name: wandb/client
Commit Name: 5e86a729c39922025d45d001e4ab38231c49eae3
Time: 2020-08-28
Author: jeff@wandb.com
File Name: wandb/sdk/wandb_init.py
Class Name: _WandbInit
Method Name: setup


Project Name: wandb/client
Commit Name: 5e86a729c39922025d45d001e4ab38231c49eae3
Time: 2020-08-28
Author: jeff@wandb.com
File Name: wandb/sdk_py27/wandb_init.py
Class Name: _WandbInit
Method Name: setup