How do you extract a sampled variable from a submodel? #2541
Replies: 2 comments
-
We had some discussion about this at #2485. (You are very welcome to chime in, btw.) @penelopeysm and @mhauru would know better, but I think we don't yet have a complete interface for what you want at the moment, am I correct? |
Beta Was this translation helpful? Give feedback.
-
The easiest way is to change what the submodel returns, such that the return value contains the beta parameter -- unfortunately if the model you're using is from a library then I guess that's not an option. In the absence of that, yeah, the best way is to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I've defined a model
model1
that samples the variableβ
and returnsnothing
(perhaps throughTuringGLM
). Say I want to use theβ
variable sampled bymodel1
from within another modelmodel2
. The nearest I can get is the following:Is there a cleaner way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions