Skip to content

Commit 55079d1

Browse files
michaelosthegericardoV94
authored andcommitted
Fix regression #6840
The `tune` attribute is reset by the sampling iterator. Closes #6840
1 parent 5c600c7 commit 55079d1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pymc/step_methods/metropolis.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ def __init__(self, vars, order="random", transit_p=0.8, model=None):
492492

493493
def reset_tuning(self):
494494
# There are no tuning parameters in this step method.
495-
self.tune = False
496495
return
497496

498497
def astep(self, apoint: RaveledVars, *args) -> Tuple[RaveledVars, StatsType]:
@@ -620,7 +619,6 @@ def __init__(self, vars, proposal="uniform", order="random", model=None):
620619

621620
def reset_tuning(self):
622621
# There are no tuning parameters in this step method.
623-
self.tune = False
624622
return
625623

626624
def astep_unif(self, apoint: RaveledVars, *args) -> Tuple[RaveledVars, StatsType]:

0 commit comments

Comments
 (0)