Verified Commit 9e5cb142 authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

Save jscale to record structure before running MCMC

Useful in conjunction with mh_tune_jscale in cases where the posterior sampler crashes
parent 9c216dc0
...@@ -226,6 +226,7 @@ if ~options_.load_mh_file && ~options_.mh_recover ...@@ -226,6 +226,7 @@ if ~options_.load_mh_file && ~options_.mh_recover
record.LastLineNumber = AnticipatedNumberOfLinesInTheLastFile; record.LastLineNumber = AnticipatedNumberOfLinesInTheLastFile;
record.MCMCConcludedSuccessfully = 0; record.MCMCConcludedSuccessfully = 0;
record.MCMC_sampler=options_.posterior_sampler_options.posterior_sampling_method; record.MCMC_sampler=options_.posterior_sampler_options.posterior_sampling_method;
record.ProposalScaleVec=bayestopt_.jscale;
fprintf('Ok!\n'); fprintf('Ok!\n');
id = write_mh_history_file(MetropolisFolder, ModelName, record); id = write_mh_history_file(MetropolisFolder, ModelName, record);
disp(['Estimation::mcmc: Details about the MCMC are available in ' BaseName '_mh_history_' num2str(id) '.mat']) disp(['Estimation::mcmc: Details about the MCMC are available in ' BaseName '_mh_history_' num2str(id) '.mat'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment