Save jscale to record structure before running MCMC

Useful in conjunction with mh_tune_jscale in cases where the posterior sampler crashes
time-shift
Johannes Pfeifer 2020-02-25 17:01:47 +01:00 committed by Stéphane Adjemian (Charybdis)
parent 9c216dc06b
commit 9e5cb1422d
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ if ~options_.load_mh_file && ~options_.mh_recover
record.LastLineNumber = AnticipatedNumberOfLinesInTheLastFile;
record.MCMCConcludedSuccessfully = 0;
record.MCMC_sampler=options_.posterior_sampler_options.posterior_sampling_method;
record.ProposalScaleVec=bayestopt_.jscale;
fprintf('Ok!\n');
id = write_mh_history_file(MetropolisFolder, ModelName, record);
disp(['Estimation::mcmc: Details about the MCMC are available in ' BaseName '_mh_history_' num2str(id) '.mat'])