Xianda Sun
Xianda Sun
After the merging of https://github.com/TuringLang/AbstractMCMC.jl/pull/86. We can start removing HMC and MH samplers to using `ExternalSampler` interface. This would involve following steps: - [ ] add `getparams` and `setparams!!` implementation...
ref: https://github.com/TuringLang/Turing.jl/issues/2367
```julia julia> @model demo_lkj() = x ~ LKJCholesky(2, 1.0) demo_lkj (generic function with 2 methods) julia> model = demo_lkj() Model{typeof(demo_lkj), (), (), (), Tuple{}, Tuple{}, DefaultContext}(demo_lkj, NamedTuple(), NamedTuple(), DefaultContext()) julia>...
fix #647 Turing's implementation relies on `setval_and_resample!` to generate the predictions, and use `bundle_samples` function implemented in `Turing.Inference`. This PR provides a draft implementing `predict` using the new `fix` interface:...
ref: https://github.com/TuringLang/Turing.jl/issues/2367