Skip to content
Snippets Groups Projects
Verified Commit d01846e5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix incorrect test for options_.posterior_sampler_options.posterior_sampling_method

Thanks to checkcode().
parent 09c10bed
Branches
Tags
No related merge requests found
...@@ -439,7 +439,7 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ... ...@@ -439,7 +439,7 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ...
end end
% Tunes the jumping distribution's scale parameter % Tunes the jumping distribution's scale parameter
if options_.mh_tune_jscale.status if options_.mh_tune_jscale.status
if options_.posterior_sampler_options.posterior_sampling_method=='random_walk_metropolis_hastings' if strcmp(options_.posterior_sampler_options.posterior_sampling_method, 'random_walk_metropolis_hastings')
options = options_.mh_tune_jscale; options = options_.mh_tune_jscale;
options.rwmh = options_.posterior_sampler_options.rwmh; options.rwmh = options_.posterior_sampler_options.rwmh;
options_.mh_jscale = calibrate_mh_scale_parameter(objective_function, ... options_.mh_jscale = calibrate_mh_scale_parameter(objective_function, ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment