Repository navigation
Commit d9caa81
bayes_nonconj: declare the truncated log-normal prior's (0, 1] support (numpyro 0.22) (#1065)
numpyro 0.22.0 validates distribution arguments by default. The prior
was a TransformedDistribution(TruncatedNormal(high=0), ExpTransform()),
whose declared support is (0, ∞), so NUTS initialisation could propose
θ > 1 and dist.Binomial(n, θ) raised "BinomialProbs distribution got
invalid probs parameter". Declaring interval(0, 1) keeps θ in range.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>1 parent 0abf403 commit d9caa81
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
336 | 340 | | |
337 | 341 | | |
338 | 342 | | |
| |||
0 commit comments