BUG: KeyError: 'diverging'
when setting up CategoricalGibbsMetropolis
step method with proposal=‘proportional’
#7628
Labels
Describe the issue:
Trying to set up
CategoricalGibbsMetropolis
step method for a categorical variable with theproposal
parameter set to'proportional'
causes an errorKeyError: 'diverging'
just as sampling starts.Reproduceable code example:
Error message:
PyMC version information:
PyMC Version: 5.19.1
PyTensor Version: 2.26.3
Python Version: 3.12.7
Context for the issue:
Editing the pymc source code by copying this pattern at the end of
astep_prop
as suggested by Luciano Paz resolved the issue for me.The text was updated successfully, but these errors were encountered: