Understanding modeling when missing categorical values are present

Maybe the documentation of Potential clarifies your question? pymc.Potential — PyMC 5.3.0 documentation