e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e,pymc3/distributions/mixture.py,Mixture,comp_dists,#Mixture#Any#,111

Before Change


        self._comp_dists = _comp_dists
        // Tests if the comp_dists can call random with non None size
        with _DrawValuesContextBlocker():
            if isinstance(self.comp_dists, (list, tuple)):
                try:
                    [comp_dist.random(size=23)
                     for comp_dist in self.comp_dists]

After Change


            // the broadcast shape would be. This shape will be the dist_shape
            // used by generate samples (the shape of a single random sample)
            // from the mixture
            self._comp_dist_shapes = [to_tuple(d.shape) for d in comp_dists]
            // All component distributions must broadcast with each other
            try:
                self._broadcast_shape = np.broadcast(
                    *[np.empty(shape) for shape in self._comp_dist_shapes]
                ).shape
            except Exception:
                raise TypeError("Supplied comp_dists shapes do not broadcast "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pymc-devs/pymc3
Commit Name: e3fd56b08ed5c4d7247a147c3fab7c0fe59e9a0e
Time: 2019-02-16
Author: luciano.paz.neuro@gmail.com
File Name: pymc3/distributions/mixture.py
Class Name: Mixture
Method Name: comp_dists


Project Name: pymc-devs/pymc3
Commit Name: 1231f910dd4f058c2fa4c3ac6b594faafeec2adc
Time: 2018-06-17
Author: colcarroll@gmail.com
File Name: pymc3/distributions/distribution.py
Class Name:
Method Name: generate_samples


Project Name: qubvel/segmentation_models
Commit Name: 9dab90d20bc5e2cccd78b4b4d6156ec5c8c83257
Time: 2018-09-05
Author: qubvel@gmail.com
File Name: segmentation_models/unet/builder.py
Class Name:
Method Name: build_unet