Pm.mixture not working

This is a python error, it’s telling you that you have a typo. Usually it’s one line above the line that the interpreter flags for you. If you look closely here:

    components = pm.Weibull.dist(alpha=pm.math.stack([gammamixt1, gammamixt2], beta=pm.math.stack([gammamixt3, gammamixt4]), shape=(4,))

You will see that you are missing a ) to close the first pm.math.stack function.

1 Like