docs icon indicating copy to clipboard operation
docs copied to clipboard

UndefVarError: bijector not defined

Open caxelrud opened this issue 4 years ago • 1 comments

Tutorial are key for users to learn. The Variational Inference notebook has the following error for a long time.

_, sym2range = Variational.bijector(m; sym_to_ranges = Val(true)); #ERROR: UndefVarError: bijector not defined

Also, the following line needs to exclude ".value": density!(collect(skipmissing(samples_nuts[:s].value)), label = "s (NUTS)", color = :green, linewidth = 2)

Regards,

caxelrud avatar Nov 21 '20 21:11 caxelrud

In case someone else is struggling and found this. It should be

using Turing: Bijectors
_, sym2range = Bijectors.bijector(model, Val(true))

nickto avatar May 21 '21 15:05 nickto

Was fixed at some point, it seems.

devmotion avatar Jul 10 '23 22:07 devmotion