Skip to content
Snippets Groups Projects
Commit c5ab1c7f authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Decrease waitbar refresh rates to not clutter the console output

parent 776c247b
No related branches found
No related tags found
1 merge request!2190testsuite: use silent_optimizer option to not clutter meson log-file
......@@ -54,7 +54,7 @@ if init
case 'random_walk_metropolis_hastings'
posterior_sampler_options.parallel_bar_refresh_rate=50;
posterior_sampler_options.serial_bar_refresh_rate=3;
posterior_sampler_options.serial_bar_refresh_rate=20;
posterior_sampler_options.parallel_bar_title='RWMH';
posterior_sampler_options.serial_bar_title='RW Metropolis-Hastings';
......@@ -111,8 +111,8 @@ if init
end
case 'tailored_random_block_metropolis_hastings'
posterior_sampler_options.parallel_bar_refresh_rate=5;
posterior_sampler_options.serial_bar_refresh_rate=1;
posterior_sampler_options.parallel_bar_refresh_rate=50;
posterior_sampler_options.serial_bar_refresh_rate=20;
posterior_sampler_options.parallel_bar_title='TaRB-MH';
posterior_sampler_options.serial_bar_title='TaRB Metropolis-Hastings';
......@@ -181,7 +181,7 @@ if init
case 'independent_metropolis_hastings'
posterior_sampler_options.parallel_bar_refresh_rate=50;
posterior_sampler_options.serial_bar_refresh_rate=3;
posterior_sampler_options.serial_bar_refresh_rate=10;
posterior_sampler_options.parallel_bar_title='IMH';
posterior_sampler_options.serial_bar_title='Ind. Metropolis-Hastings';
......
......@@ -186,7 +186,7 @@ end
hh_fig = dyn_waitbar(0,'Please wait. Gibbs sampler...');
set(hh_fig,'Name','Olsgibbs estimation.');
for i = discarddraws+1:ndraws
if ~mod(i,10)
if ~mod(i,100)
dyn_waitbar((i-discarddraws)/(ndraws-discarddraws),hh_fig,'Please wait. Gibbs sampler...');
end
% Set conditional distribution of β
......
......@@ -518,9 +518,10 @@ for b=fpar:B
end
irun(irun_index) = 1;
end
if mod(b-fpar+1, 5)==0
dyn_waitbar((b-fpar+1)/(B-fpar+1),h);
end
end
myoutput.ifil=ifil;
if RemoteFlag==1
......
function ds = surgibbs(ds, param_names, beta0, A, ndraws, discarddraws, thin, eqtags, model_name)
% Implements Gibbs Samipling for SUR
% Implements Gibbs Sampling for SUR
%
% INPUTS
% ds [dseries] data
......@@ -110,7 +110,7 @@ hh_fig = dyn_waitbar(0,'Please wait. Gibbs sampler...');
set(hh_fig,'Name','Surgibbs estimation.');
residdraws = zeros(floor((ndraws-discarddraws)/thin), nobs, m);
for i = 1:ndraws
if ~mod(i,10)
if ~mod(i,100)
dyn_waitbar(i/ndraws,hh_fig,'Please wait. Gibbs sampler...');
end
% Draw Omega, given X, Y, Beta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment