Constraining order in a Mixture model

You want to add transform=pm.transforms.ordered to the constructor for coef. See the examples in Chapter 11 of the PyMC3 port of Statistical Rethinking.

1 Like