Getting the current sample variable value so it can be used to compute the observed inputs in a secondary model likelihood

Hello @junpenglao ! Thank you very much for your reply!

I have not been able to make that work because I need a function which can integrate under a theano vector.

However, in this post you shared there are people doing the same :slight_smile: :

That approach works: I can can integrate the specially if I apply an interpolation on the propopsed

This seems like and old post: Maybe you know if someone has shared a working pymc3 code with a integration op for a y = f(x) function?