initmarginals
in rxinference
confusing (not starting inference)
#77
Labels
Milestone
initmarginals
in rxinference
confusing (not starting inference)
#77
Ran into an issue that I think a lot of people will get who want to try out the
rxinference()
function.For the simple model
with auto updates:
I started off with the following implementation:
which did not start the inference procedure, i.e.
methoderror: iterate(::Nothing)
as a result ofmean_cov(::Missing)
. It turned out thatinitmarginals
first sets the marginals, thenautoupdates
is called and then inference actually starts. Below code did run:I understand why it is implemented as such, but it is not clear from the error message what is going wrong. Perhaps we can improve the error handling by first check whether all marginals in
autoupdates
are specified in theinitmarginals
struct. If this is not the case we should throw an error message stating that first marginals are set, then autoupdates is called and then data is fed into the model.The text was updated successfully, but these errors were encountered: