# ANN: Simulated Neural Moments now uses Turing

**URL:** <https://discourse.julialang.org/t/ann-simulated-neural-moments-now-uses-turing/76843>\
**Category:** Statistics\
**Tags:** turing, abc\
**Created:** [February 21, 2022, 2:59pm UTC](https://discourse.julialang.org/t/ann-simulated-neural-moments-now-uses-turing/76843 "2022-02-21T14:59:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Post date:** [February 21, 2022, 2:59pm UTC](https://discourse.julialang.org/t/ann-simulated-neural-moments-now-uses-turing/76843/1 "2022-02-21T14:59:33Z")

</div>

Following the simple example of ABC/MSM using Turing.jl ([ABC / MSM with Turing.jl](https://discourse.julialang.org/t/abc-msm-with-turing-jl/76189)), I have updated the [https://github.com/mcreel/SimulatedNeuralMoments.jl](https://github.com/mcreel/SimulatedNeuralMoments.jl) package to write the likelihood using the Turing.jl PPL form. Sampling is done using AdvancedMH.jl. The code now uses Bijectors.jl to transform the support of the priors, which helps to align the proposal with the likelihood, for more effective sampling. The whole Turing environment works very nicely for this form of ABC/MSM. The Turing version is in the main branch. The released version is still pre-Turing.

Here’s a simple mixture of normals example, to see how it looks:  
[https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/MN/README.md](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/MN/README.md)
