pyro/infer/energy_distance.py

Killed 1 out of 4 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 331

--- pyro/infer/energy_distance.py
+++ pyro/infer/energy_distance.py
@@ -76,7 +76,7 @@
         by running the (model,guide) pair once.
     """
     def __init__(self,
-                 beta=1.,
+                 beta=2.0,
                  prior_scale=0.,
                  num_particles=2,
                  max_plate_nesting=float('inf')):

Mutant 332

--- pyro/infer/energy_distance.py
+++ pyro/infer/energy_distance.py
@@ -77,7 +77,7 @@
     """
     def __init__(self,
                  beta=1.,
-                 prior_scale=0.,
+                 prior_scale=1.0,
                  num_particles=2,
                  max_plate_nesting=float('inf')):
         if not (isinstance(beta, (float, int)) and 0 < beta and beta < 2):

Mutant 333

--- pyro/infer/energy_distance.py
+++ pyro/infer/energy_distance.py
@@ -78,7 +78,7 @@
     def __init__(self,
                  beta=1.,
                  prior_scale=0.,
-                 num_particles=2,
+                 num_particles=3,
                  max_plate_nesting=float('inf')):
         if not (isinstance(beta, (float, int)) and 0 < beta and beta < 2):
             raise ValueError("Expected beta in (0,2), actual {}".format(beta))