bambi/backends/pymc.py
Killed 87 out of 94 mutantsSuspicious
Mutants that made the test suite take longer, but otherwise seemed okMutant 693
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -35,7 +35,7 @@
"""Reset PyMC3 model and all tracked distributions and parameters."""
self.model = pm.Model()
self.mu = None
- self.par_groups = {}
+ self.par_groups = None
def _build_dist(self, spec, label, dist, **kwargs):
"""Build and return a PyMC3 Distribution."""
Mutant 706
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -66,7 +66,7 @@
and isinstance(kwargs["sigma"], pm.model.TransformedRV)
):
old_sigma = kwargs["sigma"]
- _offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["shape"])
+ _offset = pm.Normal(label + "XX_offsetXX", mu=0, sigma=1, shape=kwargs["shape"])
return pm.Deterministic(label, _offset * old_sigma)
return dist(label, **kwargs)
Mutant 707
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -66,7 +66,7 @@
and isinstance(kwargs["sigma"], pm.model.TransformedRV)
):
old_sigma = kwargs["sigma"]
- _offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["shape"])
+ _offset = pm.Normal(label + "_offset", mu=1, sigma=1, shape=kwargs["shape"])
return pm.Deterministic(label, _offset * old_sigma)
return dist(label, **kwargs)
Mutant 708
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -66,7 +66,7 @@
and isinstance(kwargs["sigma"], pm.model.TransformedRV)
):
old_sigma = kwargs["sigma"]
- _offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["shape"])
+ _offset = pm.Normal(label + "_offset", mu=0, sigma=2, shape=kwargs["shape"])
return pm.Deterministic(label, _offset * old_sigma)
return dist(label, **kwargs)
Mutant 709
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -66,7 +66,7 @@
and isinstance(kwargs["sigma"], pm.model.TransformedRV)
):
old_sigma = kwargs["sigma"]
- _offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["shape"])
+ _offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["XXshapeXX"])
return pm.Deterministic(label, _offset * old_sigma)
return dist(label, **kwargs)
Mutant 711
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -67,7 +67,7 @@
):
old_sigma = kwargs["sigma"]
_offset = pm.Normal(label + "_offset", mu=0, sigma=1, shape=kwargs["shape"])
- return pm.Deterministic(label, _offset * old_sigma)
+ return pm.Deterministic(label, _offset / old_sigma)
return dist(label, **kwargs)
Mutant 712
--- bambi/backends/pymc.py
+++ bambi/backends/pymc.py
@@ -71,7 +71,7 @@
return dist(label, **kwargs)
- def build(self, spec, reset=True): # pylint: disable=arguments-differ
+ def build(self, spec, reset=False): # pylint: disable=arguments-differ
"""Compile the PyMC3 model from an abstract model specification.
Parameters