# Initialising parameter values with compositional sampling in Turing.jl

**URL:** https://discourse.julialang.org/t/initialising-parameter-values-with-compositional-sampling-in-turing-jl/36494
**Category:** General Usage
**Tags:** question
**Created:** [March 25, 2020, 2:02pm UTC](https://discourse.julialang.org/t/initialising-parameter-values-with-compositional-sampling-in-turing-jl/36494 "2020-03-25T14:02:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MVanta](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@MVanta](https://discourse.julialang.org/u/MVanta)
#### Post date: [March 25, 2020, 2:02pm UTC](https://discourse.julialang.org/t/initialising-parameter-values-with-compositional-sampling-in-turing-jl/36494/1 "2020-03-25T14:02:29Z")

</div>

Hi all,

Is there a way to set the initialisation location for samplers when using the compositional sampling method in Turing.jl? Setting the initial values when sampling from a continuous parameter space (with hamiltonian sampler only) works well by defining the “init\_theta” argument in the sample() call. However, with the compositional sampling method (PG + Gibbs + HMC or NUTS) I always get an assertion error as the dimensions do not match. Is there some specific arrangement for the initial values that needs to be used with combined discrete and continuous parameters?
