pyro/infer/autoguide/guides.py
Killed 0 out of 7 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 437
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -90,7 +90,6 @@
self.prototype_trace = None
self._plates = {}
- @property
def model(self):
return self._model[0]
Mutant 438
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -269,7 +269,7 @@
sample site name to computed median tensor.
"""
- def __init__(self, model, guide, median=lambda *args, **kwargs: {}):
+ def __init__(self, model, guide, median=lambda *args, **kwargs: None):
super().__init__(model)
self._guide = guide
self.median = median
Mutant 439
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -373,7 +373,7 @@
guide = AutoNormal(model)
svi = SVI(model, guide, ...)
"""
- def __init__(self, model, init_loc_fn=init_to_feasible, init_scale=0.1):
+ def __init__(self, model, init_loc_fn=init_to_feasible, init_scale=1.1):
self.init_loc_fn = init_loc_fn
if not isinstance(init_scale, float) or not (init_scale > 0):
Mutant 440
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -707,7 +707,7 @@
(unconstrained transformed) latent variable.
"""
- def __init__(self, model, init_loc_fn=init_to_median, init_scale=0.1):
+ def __init__(self, model, init_loc_fn=init_to_median, init_scale=1.1):
if not isinstance(init_scale, float) or not (init_scale > 0):
raise ValueError("Expected init_scale > 0. but got {}".format(init_scale))
self._init_scale = init_scale
Mutant 441
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -757,7 +757,7 @@
(unconstrained transformed) latent variable.
"""
- def __init__(self, model, init_loc_fn=init_to_median, init_scale=0.1):
+ def __init__(self, model, init_loc_fn=init_to_median, init_scale=1.1):
if not isinstance(init_scale, float) or not (init_scale > 0):
raise ValueError("Expected init_scale > 0. but got {}".format(init_scale))
self._init_scale = init_scale
Mutant 442
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -812,7 +812,7 @@
deviation of each (unconstrained transformed) latent variable.
"""
- def __init__(self, model, init_loc_fn=init_to_median, init_scale=0.1, rank=None):
+ def __init__(self, model, init_loc_fn=init_to_median, init_scale=1.1, rank=None):
if not isinstance(init_scale, float) or not (init_scale > 0):
raise ValueError("Expected init_scale > 0. but got {}".format(init_scale))
if not (rank is None or isinstance(rank, int) and rank > 0):
Mutant 443
--- pyro/infer/autoguide/guides.py
+++ pyro/infer/autoguide/guides.py
@@ -922,7 +922,7 @@
:func:`~pyro.distributions.transforms.affine_autoregressive`.
"""
- def __init__(self, model, hidden_dim=None, init_loc_fn=None, num_transforms=1, **init_transform_kwargs):
+ def __init__(self, model, hidden_dim=None, init_loc_fn=None, num_transforms=2, **init_transform_kwargs):
if init_loc_fn:
warnings.warn("The `init_loc_fn` argument to AutoIAFNormal is not used in practice. "
"Please consider removing, as this may be removed in a future release.",