This fixes a bug when auto-imputation takes place, in which case the logic to retrieve p wasn't valid. This will also show p as an input of the underlying Categorical in the graphviz.
Description
This PR fixes a bug when setting compute_p=True for partially observed OrderedLogistic/Probit. The logic of retrieving p from the third input does not work in this case, because when there is imputation a different kind of variable is returned (the joined vector of imputed and observed variables)
This fixes a bug when auto-imputation takes place, in which case the logic to retrieve
p
wasn't valid. This will also showp
as an input of the underlying Categorical in the graphviz.Description
This PR fixes a bug when setting
compute_p=True
for partially observed OrderedLogistic/Probit. The logic of retrievingp
from the third input does not work in this case, because when there is imputation a different kind of variable is returned (the joined vector of imputed and observed variables)Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7349.org.readthedocs.build/en/7349/