Skip to content

Commit 3b394e5

Browse files
Return dummy stats from CategoricalGibbs
1 parent 3180533 commit 3b394e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymc/step_methods/metropolis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,9 @@ def astep_prop(self, apoint: RaveledVars, *args) -> tuple[RaveledVars, StatsType
816816
for dim, k in dimcats:
817817
logp_curr = self.metropolis_proportional(q, logp, logp_curr, dim, k)
818818

819-
return q, []
819+
# Tune is always False, because this step does not have any tunable parameters.
820+
stats = {"tune": False}
821+
return q, [stats]
820822

821823
def astep(self, apoint: RaveledVars, *args) -> tuple[RaveledVars, StatsType]:
822824
raise NotImplementedError()

0 commit comments

Comments
 (0)