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
IMO we should have a FAQ section for typical issues people face so that we can easily point them to this resource rather than repeat answers constantly. In particular because we're increasingly getting new users who are not familiar with Julia on its own, and so they might not know "trivial" details like "AD comes in a separate package", "Distriubtions are from Distributions.jl", etc.
Typically it's a matter of using fill(missing, n) instead of missing when y ~ MvNormal(...) is in the model, or something like that.
"Why is my model slow?"
We should of course just update the performance section quite drastically, but for the time being it would be useful to have a few pointers + tell people to use TuringBenchmarking.jl to benchmark different approaches.
There are two aspects to "slow sampling": computational and sampling complexity.
Computational:
ForwardDiff.jl is good for low dim models, e.g. <100.
ReverseDiff.jl with compilation is recommended for higher dim models, e.g. >= 100.
Zygote.jl is usually quite slow and can take ages to compile (link to my issue on Zygote.jl compilation times).
Use TuringBenchmarking.jl to benchmark different models.
Avoid indexing, e.g. replace y[i] ~ Normal(...) with y ~ MvNormal(...). NOTE: y is now treated differently and so it might have undesirable effects, see FAQ on predict (the one above).
Sampling complexity (probably don't want to say too much about this here though; too broad of a topic):
First thing to try: NUTS.
Try using Gibbs.
"How do I use a custom distribution in Turing.jl?"
Point them to the existing docs we have (which I believe needs to be updated).
There are probably many more; please suggest some:)
The text was updated successfully, but these errors were encountered:
IMO we should have a FAQ section for typical issues people face so that we can easily point them to this resource rather than repeat answers constantly. In particular because we're increasingly getting new users who are not familiar with Julia on its own, and so they might not know "trivial" details like "AD comes in a separate package", "Distriubtions are from Distributions.jl", etc.
Here's a list of a few questions I have in mind:
predict
isn't working with mymissing
values"fill(missing, n)
instead ofmissing
wheny ~ MvNormal(...)
is in the model, or something like that.y[i] ~ Normal(...)
withy ~ MvNormal(...)
. NOTE:y
is now treated differently and so it might have undesirable effects, see FAQ onpredict
(the one above).There are probably many more; please suggest some:)
The text was updated successfully, but these errors were encountered: