You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have 2 arguments for changing the behavior of assume and observe, context and sampler. I think:
Sampler belongs in a field in DefaultContext, perhaps renaming it to SamplingContext,
SampleFromPrior should always overwrite the values in VarInfo much like SampleFromUniform in Fix SampleFromUniform #78, and
ComputeLogpContext can be another context which encompasses LikelihoodContext, PriorContext and the current behavior of DefaultContext with SampleFromPrior.
I always found it confusing the SampleFromPrior doesn't actually sample anything if VarInfo already has values.