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
julia>using Turing
julia>@modelfunctionf(x)
x ~Normal()
end
f (generic function with 2 methods)
julia>sample(f(1.0), NUTS(), 100)
Sampling 100%|██████████████████████████████████████████| Time:0:00:00
ERROR: ArgumentError: reducing over an empty collection is not allowed; consider supplying `init` to the reducer
[...]
I think check_model() should probably error if the model is empty.
The text was updated successfully, but these errors were encountered:
Or maybe VarInfo should be able to handle this without erroring, return a chain with one dimension being zero? I don't see a reason why we should ban likelihood-only models, even if they are a bit silly. Might come around as a special case in some system of models someone is developing or somesuch.
DynamicPPL is actually quite fine with it, it's getparams that errors so in that case this would be a Turing bug. Happy to move it, I opened it here because if it was check_model it would be here.
I think
check_model()
should probably error if the model is empty.The text was updated successfully, but these errors were encountered: