9f6f50aa077678ebcf8362e7ad1e632bf5303f85,pymc3/variational/opvi.py,GroupApprox,__init_group__,#GroupApprox#Any#,535

Before Change


                self.ndim += var.dsize
                shape = var.dshape
            end = self.ndim
            self.vmap[var] = VarMap(var.name, slice(begin, end), shape, var.dtype)
        self.replacements = dict()
        for v, (name, slc, shape, dtype) in self.vmap.items():
            // slice is taken only by last dimension

After Change


        )
        // I do some staff that is not supported by standard __init__
        // so I have to to it by myself
        self.ordering = object.__new__(ArrayOrdering)
        self.ordering.vmap = []
        self.ordering.dimensions = 0
        for var in self.group:
            var = get_transformed(var)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: biolab/orange3
Commit Name: 42b621da40e8ad28e43d93a40582262ff27926d1
Time: 2015-07-18
Author: anze.staric@gmail.com
File Name: Orange/statistics/contingency.py
Class Name: Discrete
Method Name: from_data


Project Name: has2k1/plotnine
Commit Name: 5464fc26226597d26b4705b6cbce3dd092b9706c
Time: 2015-10-12
Author: has2k1@gmail.com
File Name: ggplot/themes/theme_xkcd.py
Class Name: theme_xkcd
Method Name: __deepcopy__