Skip to content

Commit

Permalink
Fix regression pymc-devs#6840
Browse files Browse the repository at this point in the history
The `tune` attribute is reset by the sampling iterator.

Closes pymc-devs#6840
  • Loading branch information
michaelosthege committed Aug 1, 2023
1 parent 5c600c7 commit b0b5e21
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pymc/step_methods/metropolis.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ def __init__(self, vars, order="random", transit_p=0.8, model=None):

def reset_tuning(self):
# There are no tuning parameters in this step method.
self.tune = False
return

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

def reset_tuning(self):
# There are no tuning parameters in this step method.
self.tune = False
return

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

0 comments on commit b0b5e21

Please sign in to comment.