47e4d85129686501658d16528c86eca3e3987c9c,pymc3/variational/opvi.py,GroupApprox,_check_user_params,#GroupApprox#,517

Before Change


        correct_shaped = dict()
        for name, param in self.user_params.items():
            spec = self.__param_spec__[name]
            shape = tuple(eval(s, {"d": self.ndim}) for s in spec)
            if self.is_local:
                shape = (-1, ) + shape
            correct_shaped[name] = param.reshape(shape)
        self.user_params.update(correct_shaped)

After Change


                             "they should be equal, got {givens}, needed {needed}".format(
                              givens=givens, needed=needed))
        self._user_params = dict()
        spec = self.get_param_spec_for(d=self.ndim, **kwargs.pop("spec_kw", {}))
        for name, param in self.user_params.items():
            shape = spec[name]
            if self.is_local:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pymc-devs/pymc3
Commit Name: 47e4d85129686501658d16528c86eca3e3987c9c
Time: 2017-09-02
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/opvi.py
Class Name: GroupApprox
Method Name: _check_user_params


Project Name: scipy/scipy
Commit Name: e0cebaa7d361064d6e7a615d5bb8969ed633ab19
Time: 2013-08-14
Author: argriffi@ncsu.edu
File Name: scipy/integrate/quadpack.py
Class Name: _NQuad
Method Name: _int


Project Name: NifTK/NiftyNet
Commit Name: f27fc2c9841b582b7280d00abca832b09954a7fc
Time: 2017-08-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_window.py
Class Name:
Method Name: read_window_sizes