I’d like to use the X
coordinates for the Latent GP as a changing theano.shared
node. Something like
X = theano.shared(X_init)
gp = pm.gp.Latent(cov_func=cov)
J = gp.prior('J', X, shape=???)
# before inference
X.set_value(X_new) # possibly new shape
Apparenty I have to specify a shape
parameter, because it cannot be inferred from the X
TheanoVariable
. However, I’d like to change the X
node later (for each frame to be reconstructed). Is something like this possible? Or will I have to create a new prior for each new X
? I’m trying to prevent a constant redefinition of the model for each input.