pymc3/step_methods/hmc/hmc.py
Killed 0 out of 22 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 635
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -23,7 +23,7 @@
__all__ = ['HamiltonianMC']
-def unif(step_size, elow=.85, ehigh=1.15):
+def unif(step_size, elow=1.85, ehigh=1.15):
return np.random.uniform(elow, ehigh) * step_size
Mutant 636
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -23,7 +23,7 @@
__all__ = ['HamiltonianMC']
-def unif(step_size, elow=.85, ehigh=1.15):
+def unif(step_size, elow=.85, ehigh=2.15):
return np.random.uniform(elow, ehigh) * step_size
Mutant 637
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -33,7 +33,7 @@
See NUTS sampler for automatically tuned stopping time and step size scaling.
"""
- name = 'hmc'
+ name = 'XXhmcXX'
default_blocked = True
generates_stats = True
stats_dtypes = [{
Mutant 638
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -33,7 +33,7 @@
See NUTS sampler for automatically tuned stopping time and step size scaling.
"""
- name = 'hmc'
+ name = None
default_blocked = True
generates_stats = True
stats_dtypes = [{
Mutant 639
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -34,7 +34,7 @@
"""
name = 'hmc'
- default_blocked = True
+ default_blocked = False
generates_stats = True
stats_dtypes = [{
'step_size': np.float64,
Mutant 640
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -34,7 +34,7 @@
"""
name = 'hmc'
- default_blocked = True
+ default_blocked = None
generates_stats = True
stats_dtypes = [{
'step_size': np.float64,
Mutant 641
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -35,7 +35,7 @@
name = 'hmc'
default_blocked = True
- generates_stats = True
+ generates_stats = False
stats_dtypes = [{
'step_size': np.float64,
'n_steps': np.int64,
Mutant 642
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -35,7 +35,7 @@
name = 'hmc'
default_blocked = True
- generates_stats = True
+ generates_stats = None
stats_dtypes = [{
'step_size': np.float64,
'n_steps': np.int64,
Mutant 643
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -37,7 +37,7 @@
default_blocked = True
generates_stats = True
stats_dtypes = [{
- 'step_size': np.float64,
+ 'XXstep_sizeXX': np.float64,
'n_steps': np.int64,
'tune': np.bool,
'step_size_bar': np.float64,
Mutant 644
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -38,7 +38,7 @@
generates_stats = True
stats_dtypes = [{
'step_size': np.float64,
- 'n_steps': np.int64,
+ 'XXn_stepsXX': np.int64,
'tune': np.bool,
'step_size_bar': np.float64,
'accept': np.float64,
Mutant 645
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -39,7 +39,7 @@
stats_dtypes = [{
'step_size': np.float64,
'n_steps': np.int64,
- 'tune': np.bool,
+ 'XXtuneXX': np.bool,
'step_size_bar': np.float64,
'accept': np.float64,
'diverging': np.bool,
Mutant 646
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -40,7 +40,7 @@
'step_size': np.float64,
'n_steps': np.int64,
'tune': np.bool,
- 'step_size_bar': np.float64,
+ 'XXstep_size_barXX': np.float64,
'accept': np.float64,
'diverging': np.bool,
'energy_error': np.float64,
Mutant 647
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -41,7 +41,7 @@
'n_steps': np.int64,
'tune': np.bool,
'step_size_bar': np.float64,
- 'accept': np.float64,
+ 'XXacceptXX': np.float64,
'diverging': np.bool,
'energy_error': np.float64,
'energy': np.float64,
Mutant 648
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -42,7 +42,7 @@
'tune': np.bool,
'step_size_bar': np.float64,
'accept': np.float64,
- 'diverging': np.bool,
+ 'XXdivergingXX': np.bool,
'energy_error': np.float64,
'energy': np.float64,
'path_length': np.float64,
Mutant 649
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -43,7 +43,7 @@
'step_size_bar': np.float64,
'accept': np.float64,
'diverging': np.bool,
- 'energy_error': np.float64,
+ 'XXenergy_errorXX': np.float64,
'energy': np.float64,
'path_length': np.float64,
'accepted': np.bool,
Mutant 650
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -44,7 +44,7 @@
'accept': np.float64,
'diverging': np.bool,
'energy_error': np.float64,
- 'energy': np.float64,
+ 'XXenergyXX': np.float64,
'path_length': np.float64,
'accepted': np.bool,
'model_logp': np.float64,
Mutant 651
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -45,7 +45,7 @@
'diverging': np.bool,
'energy_error': np.float64,
'energy': np.float64,
- 'path_length': np.float64,
+ 'XXpath_lengthXX': np.float64,
'accepted': np.bool,
'model_logp': np.float64,
}]
Mutant 652
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -46,7 +46,7 @@
'energy_error': np.float64,
'energy': np.float64,
'path_length': np.float64,
- 'accepted': np.bool,
+ 'XXacceptedXX': np.bool,
'model_logp': np.float64,
}]
Mutant 653
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -47,7 +47,7 @@
'energy': np.float64,
'path_length': np.float64,
'accepted': np.bool,
- 'model_logp': np.float64,
+ 'XXmodel_logpXX': np.float64,
}]
def __init__(self, vars=None, path_length=2., max_steps=1024, **kwargs):
Mutant 654
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -50,7 +50,7 @@
'model_logp': np.float64,
}]
- def __init__(self, vars=None, path_length=2., max_steps=1024, **kwargs):
+ def __init__(self, vars=None, path_length=3.0, max_steps=1024, **kwargs):
"""Set up the Hamiltonian Monte Carlo sampler.
Parameters
Mutant 655
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -50,7 +50,7 @@
'model_logp': np.float64,
}]
- def __init__(self, vars=None, path_length=2., max_steps=1024, **kwargs):
+ def __init__(self, vars=None, path_length=2., max_steps=1025, **kwargs):
"""Set up the Hamiltonian Monte Carlo sampler.
Parameters
Mutant 656
--- pymc3/step_methods/hmc/hmc.py
+++ pymc3/step_methods/hmc/hmc.py
@@ -151,7 +151,6 @@
}
return HMCStepData(end, accept_stat, div_info, stats)
- @staticmethod
def competence(var, has_grad):
"""Check how appropriate this class is for sampling a random variable."""
if var.dtype in discrete_types or not has_grad: