@yyaodong
Hi Dustin:
Let’s say you want to build a predictive model in a Bayesian way, to predict
y_ibased onx_i, and in the graph definitionP(y_i, x_i, z_i, beta),there is a local latent variablez_ithat is dependent onx_iand global parameterbeta, andy_iis dependent on all the rest.
I want to know, in this case, after making inference on
z_iandbetabased on the training data, how to make predictions when the test datax_testcomes in. Sincez_iis dependent onx_i, how can I updatez_ito thez_test? As in my understanding, the approximatorq_z_iis only valid on the training data set, therefore, you cannot simplyq_z_i.copy(), and in GMM, thez_ican just be easily reset byqz_init.run(), becausez_iis not dependent onx_i.
Many thanks,