From a96dd5b96445cb8dd571d9c3fee84e741295bf0b Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Fri, 25 Sep 2015 17:09:07 +0200 Subject: [PATCH] for slice, always initialize empty invhess unless a new chain is initialized from a mode file --- matlab/check_posterior_sampler_options.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/check_posterior_sampler_options.m b/matlab/check_posterior_sampler_options.m index 5f0cd7b7d..acaff8da9 100644 --- a/matlab/check_posterior_sampler_options.m +++ b/matlab/check_posterior_sampler_options.m @@ -73,6 +73,10 @@ if strcmp(options_.posterior_sampling_method,'slice') if options_.load_mh_file, posterior_sampler_options.slice_initialize_with_mode = 0; + else + if ~posterior_sampler_options.slice_initialize_with_mode, + posterior_sampler_options.invhess=[]; + end end if posterior_sampler_options.rotated,