Is there an example on how to work with generalized mixture models?

Thanks @junpenglao! One thing I’m finding is I’m getting errors with putting together Weibull mixtures. Might you have an intuition as to what’s happening? I updated my mixture-model notebook (https://github.com/ericmjl/bayesian-analysis-recipes/blob/master/notebooks/mixture-model.ipynb), and it can be found at the bottom.

The error message is two-fold:

  • No modes.
  • Object not iterable.

Neither makes sense to me, as I’m following the pattern above for the Poisson mixtures.