First post here and new to pyro so apologies if I am missing something obvious
The examples section in the documentation has a really nicely worked out Gaussian mixture model example.
I was wondering, how would you extend that example so that certain observations are constrained to have the same value for the latent variable ? For instance I may want that
x_i , where
i mod 10 = k, for each
k, should have the same value for the latent variable. In general, the indices for which the latent variables are constrained to be equal are also random, but the number of possible values for the latent variables (i.e. number of components) is fixed.
(This is not an idle curiosity question, but has come up in a problem I am trying to model).
Thanks in advance to anyone who responds - and great job building this package!