for slice, always initialize empty invhess unless a new chain is initialized from a mode file
parent
9089fc340c
commit
a96dd5b964
|
@ -73,6 +73,10 @@ if strcmp(options_.posterior_sampling_method,'slice')
|
||||||
|
|
||||||
if options_.load_mh_file,
|
if options_.load_mh_file,
|
||||||
posterior_sampler_options.slice_initialize_with_mode = 0;
|
posterior_sampler_options.slice_initialize_with_mode = 0;
|
||||||
|
else
|
||||||
|
if ~posterior_sampler_options.slice_initialize_with_mode,
|
||||||
|
posterior_sampler_options.invhess=[];
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if posterior_sampler_options.rotated,
|
if posterior_sampler_options.rotated,
|
||||||
|
|
Loading…
Reference in New Issue